summaryrefslogtreecommitdiffhomepage
path: root/miscutils
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-12-21 15:07:30 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-12-21 15:07:30 +0000
commit17329745fc31fb23e6647ddf4ed41c0a8a0f90c1 (patch)
tree4d16956dc28232307002029d86e557736ebd4eac /miscutils
parent5d84c2398efe3df87141b647228f8817aad12ab6 (diff)
- fix check for group and user, remove some whitespace while at it.
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/makedevs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c
index 7bfe54fc1..0268fbb9d 100644
--- a/miscutils/makedevs.c
+++ b/miscutils/makedevs.c
@@ -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");
@@ -138,9 +138,9 @@ extern int makedevs_main(int argc, char **argv)
if (name[0] == '#') {
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') {