From 46037573958dbb3a99283ed22862e62f60f526ad Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Tue, 27 Jul 2010 06:16:52 +0000 Subject: access-control: Fix O_CREATE determination check Signed-off-by: Shehjar Tikoo Signed-off-by: Anand V. Avati BUG: 1167 (gnfs crash with fio) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1167 --- xlators/features/access-control/src/access-control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/features') 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); -- cgit