Change strcmp() == 0 into strcmp() != 0

This commit is contained in:
wbaumann 2012-06-03 10:22:00 +00:00
parent e4e3a88de5
commit 46e6f3f1c9
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,10 @@
ChangeLog for davfs2 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) 2012-05-28 Werner Baumann (werner.baumann@onlinehome.de)
* mount_davfs.c: * mount_davfs.c:

View File

@ -2480,7 +2480,7 @@ has_permission(const dav_node *node, uid_t uid, int how)
if (!grp) if (!grp)
return 0; return 0;
char **members = grp->gr_mem; char **members = grp->gr_mem;
while (*members && strcmp(*members, pw->pw_name) == 0) while (*members && strcmp(*members, pw->pw_name) != 0)
members++; members++;
if (!*members) if (!*members)
return 0; return 0;