summaryrefslogtreecommitdiffstats
path: root/source/smbd/open.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-03 11:54:00 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-03 11:54:00 +0000
commitcc6270f327fdc998e5e3a2d8c3b50f33a29ec3c1 (patch)
tree30a3b31af25152e16b10288ba1c2b89482067399 /source/smbd/open.c
parenta0632529133fdaff9d70ac3e0cf6bb021c79438e (diff)
downloadsamba-cc6270f327fdc998e5e3a2d8c3b50f33a29ec3c1.tar.gz
samba-cc6270f327fdc998e5e3a2d8c3b50f33a29ec3c1.tar.xz
samba-cc6270f327fdc998e5e3a2d8c3b50f33a29ec3c1.zip
use O_ACCMODE
Diffstat (limited to 'source/smbd/open.c')
-rw-r--r--source/smbd/open.c2
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;