1
0
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:
Andrew Tridgell -
parent a063252913
commit cc6270f327

View File

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