reopen 641538

Hi Heiko,

I've just reopened this bug.

> It matters. The debug code should print the name of the issuing *group*.
> The correct function for mapping a group id into a group name is
> getgrgid() and not getpwuid(). Please change line 675 to use getgrgid().
> 
> It just does not matter, if the groupname:groupid and username:userid
> follow the same pattern, e.g. root:0. But this isn't always true.

You're right - mostly this bug shouldn't matter. However I've created a patch
and applied it. This fix will be available with the next policyd-weight version
that will be uploaded to unstable.

Thanks for making Debian a better Distribution,
Werner Detter



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 <h...@schlittermann.de>
Author: Werner Detter <wer...@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 = "";



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to