mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
smbd: "have_proc_fds" can only work for a real fd
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
a181283f5c
commit
9e5d752591
@ -744,7 +744,16 @@ static int vfswrap_openat(vfs_handle_struct *handle,
|
||||
}
|
||||
|
||||
done:
|
||||
fsp->fsp_flags.have_proc_fds = fsp->conn->have_proc_fds;
|
||||
if (result >= 0) {
|
||||
fsp->fsp_flags.have_proc_fds = fsp->conn->have_proc_fds;
|
||||
} else {
|
||||
/*
|
||||
* "/proc/self/fd/-1" never exists. Indicate to upper
|
||||
* layers that for this fsp a possible name-based
|
||||
* fallback is the only way to go.
|
||||
*/
|
||||
fsp->fsp_flags.have_proc_fds = false;
|
||||
}
|
||||
|
||||
out:
|
||||
END_PROFILE(syscall_openat);
|
||||
|
Loading…
Reference in New Issue
Block a user