pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/privoxy replace my quick-and-dirty setgroups/initg...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e835f11edb33
branches:  trunk
changeset: 554257:e835f11edb33
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Wed Feb 11 17:59:32 2009 +0000

description:
replace my quick-and-dirty setgroups/initgroups patch by the upstream
version, to ease further updates

diffstat:

 www/privoxy/distinfo         |   4 ++--
 www/privoxy/patches/patch-af |  21 ++++++++++++++-------
 2 files changed, 16 insertions(+), 9 deletions(-)

diffs (47 lines):

diff -r 5e3326964148 -r e835f11edb33 www/privoxy/distinfo
--- a/www/privoxy/distinfo      Wed Feb 11 17:56:48 2009 +0000
+++ b/www/privoxy/distinfo      Wed Feb 11 17:59:32 2009 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.10 2009/02/04 21:30:53 drochner Exp $
+$NetBSD: distinfo,v 1.11 2009/02/11 17:59:32 drochner Exp $
 
 SHA1 (privoxy-3.0.10-stable-src.tar.gz) = 0ce51a8dc938fe6412daa7f6edf159b98fd66d54
 RMD160 (privoxy-3.0.10-stable-src.tar.gz) = 91c8d56b71a5c606554bf509827197d689d8fc10
 Size (privoxy-3.0.10-stable-src.tar.gz) = 1957465 bytes
 SHA1 (patch-aa) = c263d2a4b9522a33613f82ab2bc18d5c2b554b21
 SHA1 (patch-ac) = e39ffe694462b952c5ad66ac577a0acbee0a1d9f
-SHA1 (patch-af) = 8d572ece2f2d5cedcc7694ddda0b79e4453671ff
+SHA1 (patch-af) = cb4249abd1c2f4f5d256ab4c3b56d04213ee820f
diff -r 5e3326964148 -r e835f11edb33 www/privoxy/patches/patch-af
--- a/www/privoxy/patches/patch-af      Wed Feb 11 17:56:48 2009 +0000
+++ b/www/privoxy/patches/patch-af      Wed Feb 11 17:59:32 2009 +0000
@@ -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)



Home | Main Index | Thread Index | Old Index