mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
r3120: Fix bug #1955 reported by Love <lha@stacken.kth.se>. Inconsistent error return.
Jeremy.
This commit is contained in:
parent
c97aab7ee6
commit
c6b144654a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user