From fc9a8a76001b5d304d4589eb28ee903972dffcbb Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Fri, 20 Nov 2009 07:51:36 +0000 Subject: storage/posix: Fix condition typo. Do comparison 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 fbb2dad74..450c6b5d9 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; } -- cgit