summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/access-control/src/access-control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/access-control/src/access-control.c b/xlators/features/access-control/src/access-control.c
index 3735992435c..c33eb55a15f 100644
--- a/xlators/features/access-control/src/access-control.c
+++ b/xlators/features/access-control/src/access-control.c
@@ -1372,7 +1372,7 @@ ac_open (call_frame_t *frame, xlator_t *this, loc_t *loc, int32_t flags,
frame->local = stub;
/* If we are not supposed to create the file then there is no need to
* check the parent dir permissions. */
- if (!(flags & O_CREAT))
+ if (flags & O_CREAT)
ret = ac_open_create (stub);
else
ret = ac_open_only (stub);