id: fix inverted if (!ENABLE_DESKTOP)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
ffd81f2003
commit
df7b6577c6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user