summaryrefslogtreecommitdiffstats
path: root/xlators/storage
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-11-20 07:35:45 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-11-20 23:34:13 -0800
commit40dfc3e78b590af907caa8a4461730284648034c (patch)
tree38b2e46ad5e34b4201f5a3abedd9b33cfd13e1cb /xlators/storage
parent96ac4559414035288fa18e72a21628ea3cdf6a4c (diff)
storage/posix: Fix condition typo.
Do comparision 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')
-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 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;
}