summaryrefslogtreecommitdiff
path: root/source3
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
commitd0fb78b85efa70f4a62618873e6a03318b1f7b38 (patch)
treeda284c1ca41168c48bd25252f9346bbb326b590a /source3
parent4fedb9ddd5440c546145e8c9950ef938c52bdfe0 (diff)
downloadsamba-d0fb78b85efa70f4a62618873e6a03318b1f7b38.tar.gz
samba-d0fb78b85efa70f4a62618873e6a03318b1f7b38.tar.bz2
samba-d0fb78b85efa70f4a62618873e6a03318b1f7b38.zip
use O_ACCMODE
(This used to be commit cc6270f327fdc998e5e3a2d8c3b50f33a29ec3c1)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 2b2f0f0524..311c494a97 100644
--- a/source3/smbd/open.c
+++ b/source3/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;