mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 01:32:08 +00:00
- fix check for group and user, remove some whitespace while at it.
This commit is contained in:
parent
5d84c2398e
commit
17329745fc
@ -86,7 +86,7 @@ extern int makedevs_main(int argc, char **argv)
|
||||
int ret = EXIT_SUCCESS;
|
||||
|
||||
unsigned long flags;
|
||||
flags = bb_getopt_ulflags(argc, argv, "d:", &line);
|
||||
flags = bb_getopt_ulflags(argc, argv, "d:", &line);
|
||||
if (line)
|
||||
table = bb_xfopen(line, "r");
|
||||
|
||||
@ -139,8 +139,8 @@ extern int makedevs_main(int argc, char **argv)
|
||||
continue;
|
||||
}
|
||||
|
||||
gid = group ? get_ug_id(group, bb_xgetgrnam) : getgid();
|
||||
uid = user ? get_ug_id(user, bb_xgetpwnam) : getuid();
|
||||
gid = (*group) ? get_ug_id(group, bb_xgetgrnam) : getgid();
|
||||
uid = (*user) ? get_ug_id(user, bb_xgetpwnam) : getuid();
|
||||
full_name = concat_path_file(rootdir, name);
|
||||
|
||||
if (type == 'd') {
|
||||
|
Loading…
Reference in New Issue
Block a user