From: Bernhard Reutner-Fischer Date: Wed, 21 Dec 2005 15:03:31 +0000 (-0000) Subject: - fix check for group and user (untested..) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3a1147b2b6aeedc9345a8c0a6a9d78d265be2735;p=buildroot.git - fix check for group and user (untested..) --- diff --git a/target/makedevs/makedevs.c b/target/makedevs/makedevs.c index 08378e2886..b34b005220 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();