svn commit: samba r3119 - in trunk/source/locking: .

jra at samba.org jra at samba.org
Thu Oct 21 18:39:09 GMT 2004


Author: jra
Date: 2004-10-21 18:39:09 +0000 (Thu, 21 Oct 2004)
New Revision: 3119

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/trunk/source/locking&rev=3119&nolog=1

Log:
Fix bug #1955 reported by Love <lha at stacken.kth.se>. Inconsistent error return.
Jeremy.

Modified:
   trunk/source/locking/posix.c


Changeset:
Modified: trunk/source/locking/posix.c
===================================================================
--- trunk/source/locking/posix.c	2004-10-21 17:40:55 UTC (rev 3118)
+++ trunk/source/locking/posix.c	2004-10-21 18:39:09 UTC (rev 3119)
@@ -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