diff options
author | Shehjar Tikoo <shehjart@gluster.com> | 2010-07-27 06:16:52 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-07-28 02:24:53 -0700 |
commit | 46037573958dbb3a99283ed22862e62f60f526ad (patch) | |
tree | a26ac7ddc9c0e33c2965c89fe698e3a6eadb3185 /xlators/features | |
parent | 7ced5bf710bbbee3290845b7ee65b5c895c06e7d (diff) |
access-control: Fix O_CREATE determination check
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1167 (gnfs crash with fio)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1167
Diffstat (limited to 'xlators/features')
-rw-r--r-- | xlators/features/access-control/src/access-control.c | 2 |
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); |