From 46e6f3f1c9a5b8e260ad621ed28adc81d229e71f Mon Sep 17 00:00:00 2001 From: wbaumann Date: Sun, 3 Jun 2012 10:22:00 +0000 Subject: [PATCH] Change strcmp() == 0 into strcmp() != 0 --- ChangeLog | 5 +++++ src/cache.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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;