- fix check for group and user (untested..)
This commit is contained in:
parent
e40d0e28a3
commit
3a1147b2b6
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user