mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
- 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] == '#') {
|
if (name[0] == '#') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (group) {
|
if (*group) {
|
||||||
gid = get_ug_id(group, my_getgrnam);
|
gid = get_ug_id(group, my_getgrnam);
|
||||||
} else {
|
} else {
|
||||||
gid = getgid();
|
gid = getgid();
|
||||||
}
|
}
|
||||||
if (user) {
|
if (*user) {
|
||||||
uid = get_ug_id(user, my_getpwnam);
|
uid = get_ug_id(user, my_getpwnam);
|
||||||
} else {
|
} else {
|
||||||
uid = getuid();
|
uid = getuid();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user