From 40dfc3e78b590af907caa8a4461730284648034c Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Fri, 20 Nov 2009 07:35:45 +0000 Subject: storage/posix: Fix condition typo. Do comparision instead of assignment in if-condition in posix_link. Signed-off-by: Vikas Gorur Signed-off-by: Anand V. Avati 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 --- xlators/storage/posix/src/posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/storage/posix/src/posix.c') diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 23db0d72ad7..325c69634ec 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; } -- cgit