Package: policyd-weight / 0.1.15.2-12

05_fix_issuing_group.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: The debug code should print the name of the issuing group. this fix uses the correct function for mapping a group id into a group name (getgrgid() instead of getpwuid()
Origin: Heiko Schlittermann <hs@schlittermann.de>
Author: Werner Detter <werner@aloah-from-hell.de> 
DEP: 3
Bug-Debian: http://bugs.debian.org/641538
--- a/policyd-weight
+++ b/policyd-weight
@@ -677,7 +677,7 @@
     print "debug: USER:  $USER\n";
     print "debug: GROUP: $GROUP\n";
     print "debug: issuing user:  ".getpwuid($<)."\n";
-    print "debug: issuing group: ".getpwuid($()."\n";
+    print "debug: issuing group: ".getgrgid($()."\n";
 }
 
 $conf_str = "";