diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2005-12-21 15:03:31 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2005-12-21 15:03:31 +0000 |
commit | 3a1147b2b6aeedc9345a8c0a6a9d78d265be2735 (patch) | |
tree | 0815c51da0ae76a15b2ea10809dc975028baf68d /target/makedevs/makedevs.c | |
parent | e40d0e28a3197abcd399e80c62380aa3b177cba5 (diff) | |
download | buildroot-novena-3a1147b2b6aeedc9345a8c0a6a9d78d265be2735.tar.gz buildroot-novena-3a1147b2b6aeedc9345a8c0a6a9d78d265be2735.zip |
- fix check for group and user (untested..)
Diffstat (limited to 'target/makedevs/makedevs.c')
-rw-r--r-- | target/makedevs/makedevs.c | 4 |
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(); |