mirror of
https://github.com/samba-team/samba.git
synced 2025-03-03 12:58:35 +03:00
use O_ACCMODE
This commit is contained in:
parent
a063252913
commit
cc6270f327
@ -273,7 +273,7 @@ static void open_file(files_struct *fsp,connection_struct *conn,
|
||||
pstring fname;
|
||||
SMB_STRUCT_STAT statbuf;
|
||||
file_fd_struct *fd_ptr;
|
||||
int accmode = (flags & (O_RDONLY | O_WRONLY | O_RDWR));
|
||||
int accmode = (flags & O_ACCMODE);
|
||||
|
||||
fsp->open = False;
|
||||
fsp->fd_ptr = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user