kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16.git/commit/?id=d28388ad701f01e201f182da2fc19c7f392ed003

commit d28388ad701f01e201f182da2fc19c7f392ed003
Author: Kim Woelders <[email protected]>
Date:   Mon May 4 08:01:37 2020 +0200

    groups.c: Fix handling groups with negative id
---
 src/groups.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/groups.c b/src/groups.c
index d11d4a28..19d04bb9 100644
--- a/src/groups.c
+++ b/src/groups.c
@@ -216,9 +216,9 @@ _GroupFind2(const char *groupid)
    if (groupid[0] == '*' || groupid[0] == '\0')
       return Mode_groups.current;
 
-   gid = -1;
+   gid = 0;
    sscanf(groupid, "%d", &gid);
-   if (gid <= 0)
+   if (gid == 0)
       return NULL;
 
    return _GroupFind(gid);

-- 


Reply via email to