[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox-cvs
Subject:    [git commit master 1/1] id: fix inverted if (!ENABLE_DESKTOP)
From:       vda.linux () googlemail ! com (Denys Vlasenko)
Date:       2011-01-26 15:11:19
Message-ID: 20110126151137.A965B8D3B6 () busybox ! osuosl ! org
[Download RAW message or body]


commit: http://git.busybox.net/busybox/commit/?id=df7b6577c6abaff551b15ccc80917553afde33fb
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 coreutils/id.c |    5 ++---
 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);
-- 
1.7.3.4


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic