pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/icecast when switching to the "icecast" uid/gid,...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ee298139a277
branches:  trunk
changeset: 396628:ee298139a277
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Wed Jul 29 13:59:59 2009 +0000

description:
when switching to the "icecast" uid/gid, drop root's supplementary
group memberships,
bump PKGREVISION

diffstat:

 audio/icecast/Makefile         |   4 ++--
 audio/icecast/distinfo         |   3 ++-
 audio/icecast/patches/patch-ad |  15 +++++++++++++++
 3 files changed, 19 insertions(+), 3 deletions(-)

diffs (47 lines):

diff -r b2c4e45c2eb2 -r ee298139a277 audio/icecast/Makefile
--- a/audio/icecast/Makefile    Wed Jul 29 12:10:14 2009 +0000
+++ b/audio/icecast/Makefile    Wed Jul 29 13:59:59 2009 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.47 2008/11/08 21:13:27 bjs Exp $
+# $NetBSD: Makefile,v 1.48 2009/07/29 13:59:59 drochner Exp $
 #
 
 DISTNAME=              icecast-2.3.2
-PKGREVISION=           1
+PKGREVISION=           2
 CATEGORIES=            audio
 MASTER_SITES=          http://downloads.xiph.org/releases/icecast/
 
diff -r b2c4e45c2eb2 -r ee298139a277 audio/icecast/distinfo
--- a/audio/icecast/distinfo    Wed Jul 29 12:10:14 2009 +0000
+++ b/audio/icecast/distinfo    Wed Jul 29 13:59:59 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2008/09/08 05:32:59 dholland Exp $
+$NetBSD: distinfo,v 1.18 2009/07/29 13:59:59 drochner Exp $
 
 SHA1 (icecast-2.3.2.tar.gz) = a52b13505548c2eff2c64aab95a42dcafda11227
 RMD160 (icecast-2.3.2.tar.gz) = ec14553cce652fb80823316c9705f4cb6179cc2a
@@ -6,3 +6,4 @@
 SHA1 (patch-aa) = 2d85cabe25cf3860e42110eaf3fa5e2b1775e0cf
 SHA1 (patch-ab) = 3b9ecb2caf222f6c08646d856419595f3585f70b
 SHA1 (patch-ac) = 5637f0cd10dc4b8d03e674b701bcb16f45339eaa
+SHA1 (patch-ad) = 9b6388d99bae8239138689673dc26286323ae803
diff -r b2c4e45c2eb2 -r ee298139a277 audio/icecast/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/icecast/patches/patch-ad    Wed Jul 29 13:59:59 2009 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-ad,v 1.1 2009/07/29 13:59:59 drochner Exp $
+
+--- src/main.c.orig    2008-04-23 07:18:53.000000000 +0200
++++ src/main.c
+@@ -398,6 +398,10 @@ static void _ch_root_uid_setup(void)
+                fprintf(stdout, "Changed groupid to %i.\n", (int)gid);
+            else
+                fprintf(stdout, "Error changing groupid: %s.\n", strerror(errno));
++         if(!setgroups(1, &gid))
++             fprintf(stdout, "Dropped root's group memberships.\n");
++         else
++             fprintf(stdout, "Error dropping group memberships.\n");
+        }
+ 
+        if(uid != -1) {



Home | Main Index | Thread Index | Old Index