1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-29 13:49:30 +03:00

use O_ACCMODE

(This used to be commit cc6270f327)
This commit is contained in:
Andrew Tridgell
1998-10-03 11:54:00 +00:00
parent 4fedb9ddd5
commit d0fb78b85e

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;