diff options
| -rw-r--r-- | xlators/storage/posix/src/posix-helpers.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c index d6209521206..f93e81589a5 100644 --- a/xlators/storage/posix/src/posix-helpers.c +++ b/xlators/storage/posix/src/posix-helpers.c @@ -1673,7 +1673,7 @@ __posix_fd_ctx_get (fd_t *fd, xlator_t *this, struct posix_fd **pfd_p,           */          if (fd->inode->ia_type == IA_IFREG) {                  _fd = open (real_path, fd->flags); -                if (_fd == -1) { +                if ((_fd == -1) && (errno == ENOENT)) {                          POSIX_GET_FILE_UNLINK_PATH (priv->base_path,                                                      fd->inode->gfid,                                                      unlink_path);  | 
