From 5aafdee9062b529cca291f06857559994cae1ea2 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 21 Oct 2004 18:39:16 +0000 Subject: r3120: Fix bug #1955 reported by Love . Inconsistent error return. Jeremy. (This used to be commit c6b144654ae544c86f7caa35483e25f0cfe5e904) --- source3/locking/posix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/locking/posix.c b/source3/locking/posix.c index 6173c80b2f..0e5edfa0eb 100644 --- a/source3/locking/posix.c +++ b/source3/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; -- cgit