File: 05_fix_issuing_group.patch

package info (click to toggle)
policyd-weight 0.1.15.2-12
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,824 kB
  • ctags: 275
  • sloc: perl: 2,832; sh: 201; makefile: 35
file content (16 lines) | stat: -rw-r--r-- 654 bytes parent folder | download | duplicates (3)
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 = "";