rpms/tor/devel tor-0.2.0.30-setgroups.patch, NONE, 1.1 tor.spec, 1.22, 1.23 tor-0.1.1.26-setgroups.patch, 1.1, NONE

Enrico Scholz (ensc) fedora-extras-commits at redhat.com
Sun Jul 20 13:01:42 UTC 2008


Author: ensc

Update of /cvs/extras/rpms/tor/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15721

Modified Files:
	tor.spec 
Added Files:
	tor-0.2.0.30-setgroups.patch 
Removed Files:
	tor-0.1.1.26-setgroups.patch 
Log Message:
rediffed patches

tor-0.2.0.30-setgroups.patch:

--- NEW FILE tor-0.2.0.30-setgroups.patch ---
--- tor-0.2.0.30/src/common/compat.c.setgroups
+++ tor-0.2.0.30/src/common/compat.c
@@ -897,6 +897,11 @@ switch_id(const char *user, const char *
       return -1;
     }
 
+    if (getgroups(0,0)!=0 && setgroups(0,0)!=0) {
+      log_warn(LD_GENERAL,"Error setting groups: %s", strerror(errno));
+      return -1;
+    }
+
     if (setgid(gr->gr_gid) != 0) {
       log_warn(LD_GENERAL,"Error setting to configured GID: %s",
                strerror(errno));


Index: tor.spec
===================================================================
RCS file: /cvs/extras/rpms/tor/devel/tor.spec,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- tor.spec	20 Jul 2008 12:28:26 -0000	1.22
+++ tor.spec	20 Jul 2008 13:00:56 -0000	1.23
@@ -29,7 +29,7 @@
 Source2:	tor.logrotate
 Source3:	update-geoip
 Source4:	netfilter-ipv4.h
-Patch0:		tor-0.1.1.26-setgroups.patch
+Patch0:		tor-0.2.0.30-setgroups.patch
 Patch1:		tor-0.2.0.30-geoippath.patch
 BuildRoot:	%_tmppath/%name-%version-%release-root
 
@@ -200,7 +200,7 @@
 
 %changelog
 * Sun Jul 20 2008 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de> - 0.2.0.30-1
-- updated to 0.2.0.30
+- updated to 0.2.0.30; rediffed patches
 - (re)enabled transparent proxy support by workarounding broken
   <linux/netfilter_ipv4.h> header
 - moved the 'geoip' database to /var/lib/tor-data where it can be


--- tor-0.1.1.26-setgroups.patch DELETED ---




More information about the fedora-extras-commits mailing list