[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#641538: (no subject)



Hello Heiko,

I've verified your Bugreport. In fact it does not really make a difference if you use
"getpwuid" instead of "getgrgid" as the result is the same. For example there is a
user called "werner" with uid 1000 and gid 33:

werner:x:1000:33:werner,,,:/home/werner:/bin/bash

With this[1] little Perl script the result is as follows:

result with getpwuid for group
--------------------------------
werner
www-data

result with getgrgid for group
--------------------------------
werner
www-data

I think this bug report can be closed.

thank you,
Werner Detter


[1] "the little perl script"
#!/usr/bin/perl

use strict;
use warnings;

print "result with getpwuid for group\n";
print "--------------------------------\n";
print getpwuid($<)."\n";
print getpwuid($()."\n";
print "\n";
print "result with getgrgid for group\n";
print "--------------------------------\n";
print getpwuid($<)."\n";
print getgrgid($()."\n";







Reply to: