- fix check for group and user (untested..)
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 21 Dec 2005 15:03:31 +0000 (15:03 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 21 Dec 2005 15:03:31 +0000 (15:03 -0000)
target/makedevs/makedevs.c

index 08378e288699ce86197f066fbd11af0e5bdf3a5a..b34b005220c84a3d11bfce074b0bd22e159e8eb6 100644 (file)
@@ -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();