X-Git-Url: https://git.deb.at/?p=pkg%2Fabook.git;a=blobdiff_plain;f=debian%2Fpatches%2F859407.diff;fp=debian%2Fpatches%2F859407.diff;h=a589cdb4be54ffbed936ea288d9efd0f29163af2;hp=0000000000000000000000000000000000000000;hb=e330def8f39c5268fbbd162f8af32c4292b69d16;hpb=488521435a41a726f82c4c1efbc6160fbd85c897 diff --git a/debian/patches/859407.diff b/debian/patches/859407.diff new file mode 100644 index 0000000..a589cdb --- /dev/null +++ b/debian/patches/859407.diff @@ -0,0 +1,18 @@ +Author: Denis Briand +Bug-Debian: https://bugs.debian.org/859407 +Description: if USER env variable isn't defined, use nobody account to avoid SIGSEGV with getpwnam + +--- a/filter.c ++++ b/filter.c +@@ -186,6 +186,11 @@ + int rtn; + char *tmp; + ++ //if USER env variable isn't defined, use nobody account to avoid SIGSEGV with getpwnam ++ if (!username) { ++ username = "nobody"; ++ } ++ + pwent = getpwnam(username); + + if((tmp = xstrdup(pwent->pw_gecos)) == NULL)