svn commit: samba r3120 - in branches/SAMBA_3_0/source/locking: .
jra at samba.org
jra at samba.org
Thu Oct 21 18:39:20 GMT 2004
Author: jra
Date: 2004-10-21 18:39:16 +0000 (Thu, 21 Oct 2004)
New Revision: 3120
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_3_0/source/locking&rev=3120&nolog=1
Log:
Fix bug #1955 reported by Love <lha at stacken.kth.se>. Inconsistent error return.
Jeremy.
Modified:
branches/SAMBA_3_0/source/locking/posix.c
Changeset:
Modified: branches/SAMBA_3_0/source/locking/posix.c
===================================================================
--- branches/SAMBA_3_0/source/locking/posix.c 2004-10-21 18:39:09 UTC (rev 3119)
+++ branches/SAMBA_3_0/source/locking/posix.c 2004-10-21 18:39:16 UTC (rev 3120)
@@ -238,7 +238,7 @@
if (!add_fd_to_close_entry(fsp)) {
SAFE_FREE(entries);
- return False;
+ return -1;
}
SAFE_FREE(entries);
@@ -281,9 +281,9 @@
ret = SMB_VFS_CLOSE(fsp,fsp->fd);
if (saved_errno != 0) {
- errno = saved_errno;
+ errno = saved_errno;
ret = -1;
- }
+ }
fsp->fd = -1;
More information about the samba-cvs
mailing list