summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-01-26 15:11:19 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2011-01-26 15:11:19 (GMT)
commitdf7b6577c6abaff551b15ccc80917553afde33fb (patch)
treeb4743a70d20e4f656b5df1e6024c6c333422ade1
parentffd81f2003deaf3471e1da818735df91841399c4 (diff)
downloadbusybox-df7b6577c6abaff551b15ccc80917553afde33fb.tar.gz
busybox-df7b6577c6abaff551b15ccc80917553afde33fb.tar.bz2
id: fix inverted if (!ENABLE_DESKTOP)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--coreutils/id.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/coreutils/id.c b/coreutils/id.c
index ed1dc86..0639325 100644
--- a/coreutils/id.c
+++ b/coreutils/id.c
@@ -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);