summaryrefslogtreecommitdiff
path: root/www/privoxy/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'www/privoxy/patches/patch-af')
-rw-r--r--www/privoxy/patches/patch-af21
1 files changed, 14 insertions, 7 deletions
diff --git a/www/privoxy/patches/patch-af b/www/privoxy/patches/patch-af
index 88c7fa30a83..a3ad2ef59cb 100644
--- a/www/privoxy/patches/patch-af
+++ b/www/privoxy/patches/patch-af
@@ -1,15 +1,22 @@
-$NetBSD: patch-af,v 1.1 2009/02/04 21:20:39 drochner Exp $
+$NetBSD: patch-af,v 1.2 2009/02/11 17:59:32 drochner Exp $
---- ./jcc.c.orig 2007-12-16 19:32:46.000000000 +0100
+--- ./jcc.c.orig 2008-06-27 13:13:56.000000000 +0200
+++ ./jcc.c
-@@ -3299,6 +3299,10 @@ int main(int argc, const char *argv[])
+@@ -3349,6 +3349,17 @@ int main(int argc, const char *argv[])
{
log_error(LOG_LEVEL_FATAL, "Cannot setgid(): Insufficient permissions.");
}
-+ if (grp)
-+ setgroups(1, &grp->gr_gid);
-+ else
-+ initgroups(pw->pw_name, pw->pw_gid);
++ if (NULL != grp)
++ {
++ if (setgroups(1, &grp->gr_gid))
++ {
++ log_error(LOG_LEVEL_FATAL, "setgroups() failed: %E");
++ }
++ }
++ else if (initgroups(pw->pw_name, pw->pw_gid))
++ {
++ log_error(LOG_LEVEL_FATAL, "initgroups() failed: %E");
++ }
if (do_chroot)
{
if (!pw->pw_dir)