diff --git a/ChangeLog b/ChangeLog index 3db3831..9efe003 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ ChangeLog for davfs2 -------------------- +-------------------- + +2012-06-03 Werner Baumann (werner.baumann@onlinehome.de) + * cache.c, has_permission: + Change strcmp() == 0 into strcmp() != 0 (bug #33644). 2012-05-28 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c: diff --git a/src/cache.c b/src/cache.c index d93a98d..b0b0748 100644 --- a/src/cache.c +++ b/src/cache.c @@ -2480,7 +2480,7 @@ has_permission(const dav_node *node, uid_t uid, int how) if (!grp) return 0; char **members = grp->gr_mem; - while (*members && strcmp(*members, pw->pw_name) == 0) + while (*members && strcmp(*members, pw->pw_name) != 0) members++; if (!*members) return 0;