- fix check for group and user (untested..)

This commit is contained in:
Bernhard Reutner-Fischer 2005-12-21 15:03:31 +00:00
parent e40d0e28a3
commit 3a1147b2b6

View File

@ -424,12 +424,12 @@ int main(int argc, char **argv)
if (name[0] == '#') {
continue;
}
if (group) {
if (*group) {
gid = get_ug_id(group, my_getgrnam);
} else {
gid = getgid();
}
if (user) {
if (*user) {
uid = get_ug_id(user, my_getpwnam);
} else {
uid = getuid();