diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-10-03 11:54:00 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-10-03 11:54:00 +0000 |
commit | cc6270f327fdc998e5e3a2d8c3b50f33a29ec3c1 (patch) | |
tree | 30a3b31af25152e16b10288ba1c2b89482067399 /source/smbd/open.c | |
parent | a0632529133fdaff9d70ac3e0cf6bb021c79438e (diff) | |
download | samba-cc6270f327fdc998e5e3a2d8c3b50f33a29ec3c1.tar.gz |
use O_ACCMODE
Diffstat (limited to 'source/smbd/open.c')
-rw-r--r-- | source/smbd/open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/open.c b/source/smbd/open.c index 2b2f0f05244..311c494a97c 100644 --- a/source/smbd/open.c +++ b/source/smbd/open.c @@ -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; |