summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-10-21 18:39:16 +0000
committerJeremy Allison <jra@samba.org>2004-10-21 18:39:16 +0000
commit3bbde598d56c8d014b8b766c5ea7046bd539c3e3 (patch)
tree17bee72ff8ac2f364c6b5f46b43fceca3564e723
parent7dea288d0c91d0487d87bba030163179069a89e3 (diff)
downloadsamba-3bbde598d56c8d014b8b766c5ea7046bd539c3e3.tar.gz
samba-3bbde598d56c8d014b8b766c5ea7046bd539c3e3.tar.xz
samba-3bbde598d56c8d014b8b766c5ea7046bd539c3e3.zip
r3120: Fix bug #1955 reported by Love <lha@stacken.kth.se>. Inconsistent error return.
Jeremy.
-rw-r--r--source/locking/posix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/locking/posix.c b/source/locking/posix.c
index 6173c80b2fd..0e5edfa0eb8 100644
--- a/source/locking/posix.c
+++ b/source/locking/posix.c
@@ -238,7 +238,7 @@ int fd_close_posix(struct connection_struct *conn, files_struct *fsp)
if (!add_fd_to_close_entry(fsp)) {
SAFE_FREE(entries);
- return False;
+ return -1;
}
SAFE_FREE(entries);
@@ -281,9 +281,9 @@ int fd_close_posix(struct connection_struct *conn, files_struct *fsp)
ret = SMB_VFS_CLOSE(fsp,fsp->fd);
if (saved_errno != 0) {
- errno = saved_errno;
+ errno = saved_errno;
ret = -1;
- }
+ }
fsp->fd = -1;