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 23db0d72a..325c69634 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -1863,7 +1863,7 @@ posix_link (call_frame_t *frame, xlator_t *this, MAKE_REAL_PATH (real_newpath, this, newloc->path); op_ret = posix_lstat_with_gen (this, real_newpath, &stbuf); - if ((op_ret == -1) && (errno = ENOENT)) { + if ((op_ret == -1) && (errno == ENOENT)) { was_present = 0; } |