summaryrefslogtreecommitdiff
path: root/target/makedevs
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-12-21 15:03:31 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-12-21 15:03:31 +0000
commit3a1147b2b6aeedc9345a8c0a6a9d78d265be2735 (patch)
tree0815c51da0ae76a15b2ea10809dc975028baf68d /target/makedevs
parente40d0e28a3197abcd399e80c62380aa3b177cba5 (diff)
- fix check for group and user (untested..)
Diffstat (limited to 'target/makedevs')
-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();