Signed-off-by: Federico Simoncelli <fsimonce(a)redhat.com>
---
src/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/main.c b/src/main.c
index f8c74af..c513dc4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1210,7 +1210,7 @@ static void setup_groups(void)
sngroups = ngroups_max;
rv = getgrouplist(com.uname, com.gid, sgroup, &sngroups);
- if (rv < -1) {
+ if (rv < 0) {
log_error("cannot get the user %s groups %i", com.uname, errno);
goto out;
}
--
1.7.1