diff options
author | Emmanuel Dreyfus <manu@netbsd.org> | 2011-08-12 06:34:54 +0200 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-08-12 05:03:15 -0700 |
commit | 139e03445e590911dbf00f30b0cfc005ee8a106b (patch) | |
tree | 179998f5ad256993747016adde3d78cf97ecd3c1 | |
parent | 8a24e3179fc822e3ec59eaac8f6a2050b8dd9b40 (diff) |
For systems where O_DIRECTORY does not exist, we defined it as 0,
therefore ((flags & O_DIRECTORY) == O_DIRECTORY) is always true even
if the flag is not set.
Change-Id: Ie7837d521ea20b36ed70cf93c1763c226ff0e9f0
BUG: 2923
Reviewed-on: http://review.gluster.com/213
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@gluster.com>
-rw-r--r-- | xlators/performance/quick-read/src/quick-read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c index 77ae79d87..e17d3db23 100644 --- a/xlators/performance/quick-read/src/quick-read.c +++ b/xlators/performance/quick-read/src/quick-read.c @@ -731,7 +731,7 @@ qr_open (call_frame_t *frame, xlator_t *this, loc_t *loc, int32_t flags, } UNLOCK (&table->lock); - if (content_cached && ((flags & O_DIRECTORY) == O_DIRECTORY)) { + if (content_cached && (flags & O_DIRECTORY)) { op_ret = -1; op_errno = ENOTDIR; gf_log (this->name, GF_LOG_WARNING, |