summaryrefslogtreecommitdiffstats
path: root/target/makedevs/makedevs.c
diff options
context:
space:
mode:
Diffstat (limited to 'target/makedevs/makedevs.c')
-rw-r--r--target/makedevs/makedevs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/makedevs/makedevs.c b/target/makedevs/makedevs.c
index 08378e288..b34b00522 100644
--- a/target/makedevs/makedevs.c
+++ b/target/makedevs/makedevs.c
@@ -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();