summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-03-14 15:46:42 +0000
committerLudovic Courtès <ludo@gnu.org>2012-03-14 15:46:42 +0000
commit031ef71abf19dcd252f4d5ecd873750f81b7eb6f (patch)
tree837abab3314a6d149d28529f26d3aca08c3077e8
parentd014577de107cc58782992d1252775642c31bba4 (diff)
Fix use of `smbc_lseek' in `netfs_attempt_write'.
-rw-r--r--smbnetfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/smbnetfs.c b/smbnetfs.c
index 727c7b735..f7cf23fb9 100644
--- a/smbnetfs.c
+++ b/smbnetfs.c
@@ -652,7 +652,7 @@ netfs_attempt_write (struct iouser * cred, struct node * np, loff_t offset,
return errno;
}
mutex_lock (&smb_mutex);
- ret = smbc_lseek (fd, offset, SEEK_SET) < 0;
+ ret = smbc_lseek (fd, offset, SEEK_SET);
mutex_unlock (&smb_mutex);
if ((ret < 0) || (ret != offset))