From 3a1147b2b6aeedc9345a8c0a6a9d78d265be2735 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Wed, 21 Dec 2005 15:03:31 +0000 Subject: [PATCH] - fix check for group and user (untested..) --- target/makedevs/makedevs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.30.2