Change strcmp() == 0 into strcmp() != 0
This commit is contained in:
parent
e4e3a88de5
commit
46e6f3f1c9
@ -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:
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user