packages: trac/trac-root2http.patch - get primary group of http user
glen
glen at pld-linux.org
Tue Feb 9 18:01:40 CET 2010
Author: glen Date: Tue Feb 9 17:01:41 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- get primary group of http user
---- Files affected:
packages/trac:
trac-root2http.patch (1.3 -> 1.4)
---- Diffs:
================================================================
Index: packages/trac/trac-root2http.patch
diff -u packages/trac/trac-root2http.patch:1.3 packages/trac/trac-root2http.patch:1.4
--- packages/trac/trac-root2http.patch:1.3 Mon Nov 3 11:59:49 2008
+++ packages/trac/trac-root2http.patch Tue Feb 9 18:01:33 2010
@@ -1,6 +1,6 @@
--- Trac-0.11.1/trac/admin/console.py~ 2008-08-06 20:29:01.000000000 +0300
+++ Trac-0.11.1/trac/admin/console.py 2008-11-03 12:57:57.255366488 +0200
-@@ -129,7 +129,34 @@
+@@ -129,7 +129,33 @@
if not self.interactive:
return rv
@@ -11,10 +11,9 @@
+ import grp
+
+ user = 'http'
-+ group = 'http'
+
+ uid = pwd.getpwnam(user)[2]
-+ gid = pwd.getpwnam(group)[2]
++ gid = pwd.getpwnam(user)[3]
+
+ os.setgid(gid);
+ l = [gid]
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/trac/trac-root2http.patch?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list