1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r3120: Fix bug #1955 reported by Love <lha@stacken.kth.se>. Inconsistent error return.

Jeremy.
(This used to be commit c6b144654a)
This commit is contained in:
Jeremy Allison 2004-10-21 18:39:16 +00:00 committed by Gerald (Jerry) Carter
parent 677c218f3f
commit 5aafdee906

View 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;