mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
smbd: Simplify open_file()
We handle O_TRUNC further down anyway by passing local_flags&~O_TRUNC to reopen_from_fsp(). No need for this FIFO special case. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
df78af9893
commit
f8645c7a10
@ -1398,7 +1398,6 @@ static NTSTATUS open_file(struct smb_request *req,
|
||||
*/
|
||||
|
||||
if (file_existed && S_ISFIFO(smb_fname->st.st_ex_mode)) {
|
||||
local_flags &= ~O_TRUNC; /* Can't truncate a FIFO. */
|
||||
local_flags |= O_NONBLOCK;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user