aboutsummaryrefslogtreecommitdiffstats
path: root/shadow-libpassphrase/xstrdup.patch
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-13 15:37:35 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-13 15:37:35 +0100
commitd3ef160b44bd6ab93be2d3fea13f4496cfb0cf81 (patch)
treece132758305b1d3695aec606a1a75db7aa776d63 /shadow-libpassphrase/xstrdup.patch
parentupdate scrotty (diff)
downloadaur-packages-d3ef160b44bd6ab93be2d3fea13f4496cfb0cf81.tar.gz
aur-packages-d3ef160b44bd6ab93be2d3fea13f4496cfb0cf81.tar.bz2
aur-packages-d3ef160b44bd6ab93be2d3fea13f4496cfb0cf81.tar.xz
add shadow-libpassphrase
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--shadow-libpassphrase/xstrdup.patch9
1 files changed, 9 insertions, 0 deletions
diff --git a/shadow-libpassphrase/xstrdup.patch b/shadow-libpassphrase/xstrdup.patch
new file mode 100644
index 0000000..bce4342
--- /dev/null
+++ b/shadow-libpassphrase/xstrdup.patch
@@ -0,0 +1,9 @@
+--- shadow-4.1.2.1/libmisc/xmalloc.c 2008-08-30 21:55:44.000000000 -0500
++++ shadow-4.1.2.1/libmisc/xmalloc.c.new 2008-08-30 21:55:36.000000000 -0500
+@@ -61,5 +61,6 @@
+
+ char *xstrdup (const char *str)
+ {
++ if(str == NULL) return NULL;
+ return strcpy (xmalloc (strlen (str) + 1), str);
+ }