diff options
Diffstat (limited to 'xlators/storage')
-rw-r--r-- | xlators/storage/posix/src/posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index aafa1d4c7ee..d52f90dc0a8 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -1021,7 +1021,7 @@ posix_unlink (call_frame_t *frame, xlator_t *this, priv = this->private; if (priv->background_unlink) { if (S_ISREG (loc->inode->st_mode)) { - fd = open (real_path, O_RDONLY); + fd = open (real_path, O_RDWR); if (fd == -1) { op_ret = -1; op_errno = errno; |