id: fix inverted if (!ENABLE_DESKTOP)
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 26 Jan 2011 15:11:19 +0000 (16:11 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 26 Jan 2011 15:11:19 +0000 (16:11 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/id.c

index ed1dc862e812dd758ba91f2e89bb777c7a20bc27..0639325c3b282b5084c16073e3d7191ab9bb1319 100644 (file)
@@ -176,10 +176,9 @@ int id_main(int argc UNUSED_PARAM, char **argv)
                                prefix = ",";
                        }
                } else if (n < 0) { /* error in get_groups() */
-                       if (!ENABLE_DESKTOP)
+                       if (ENABLE_DESKTOP)
                                bb_error_msg_and_die("can't get groups");
-                       else
-                               return EXIT_FAILURE;
+                       return EXIT_FAILURE;
                }
                if (ENABLE_FEATURE_CLEAN_UP)
                        free(groups);