summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src/posix.c
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-11-20 07:51:36 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-11-20 23:34:17 -0800
commitfc9a8a76001b5d304d4589eb28ee903972dffcbb (patch)
tree9b05461b573e7f1ccb824bd46f2b28ec7f654a2a /xlators/storage/posix/src/posix.c
parent5a131d66a26baa247ed9fc9acc7f4dc1ea6c1027 (diff)
storage/posix: Fix condition typo.
Do comparison instead of assignment in if-condition in posix_link. Signed-off-by: Vikas Gorur <vikas@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 254 (storage/posix has to do inode number transformation wherever it unwinds with a stat structure) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=254
Diffstat (limited to 'xlators/storage/posix/src/posix.c')
-rw-r--r--xlators/storage/posix/src/posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index fbb2dad..450c6b5 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -1351,7 +1351,7 @@ posix_link (call_frame_t *frame, xlator_t *this,
MAKE_REAL_PATH (real_newpath, this, newloc->path);
op_ret = lstat (real_newpath, &stbuf);
- if ((op_ret == -1) && (errno = ENOENT)) {
+ if ((op_ret == -1) && (errno == ENOENT)) {
was_present = 0;
}