]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r3120: Fix bug #1955 reported by Love <lha@stacken.kth.se>. Inconsistent error return.
authorJeremy Allison <jra@samba.org>
Thu, 21 Oct 2004 18:39:16 +0000 (18:39 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:53:01 +0000 (10:53 -0500)
Jeremy.

source/locking/posix.c

index 6173c80b2fd96587ef9c893cf9826487cb5e24f9..0e5edfa0eb8ba2f17e4f7bf699d90b78f7bc441c 100644 (file)
@@ -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;