git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2815e8
)
r2438: compile on systems without O_DIRECTORY (probably won't work, but I'll get...
author
Andrew Tridgell
<tridge@samba.org>
Mon, 20 Sep 2004 08:53:45 +0000
(08:53 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:58:53 +0000
(12:58 -0500)
(This used to be commit
5e2027f8ec7248e48d1dfb94c3688c78c64a85c5
)
source4/ntvfs/posix/pvfs_open.c
patch
|
blob
|
history
diff --git
a/source4/ntvfs/posix/pvfs_open.c
b/source4/ntvfs/posix/pvfs_open.c
index 74badb24434248ac541d5836cb9f68dfb7602168..26fd444984615ef3292e2e9d4b56fe797fc86c80 100644
(file)
--- a/
source4/ntvfs/posix/pvfs_open.c
+++ b/
source4/ntvfs/posix/pvfs_open.c
@@
-84,6
+84,11
@@
NTSTATUS pvfs_open(struct smbsrv_request *req, union smb_open *io)
flags |= O_RDWR;
+/* we need to do this differently to support systems without O_DIRECTORY */
+#ifndef O_DIRECTORY
+#define O_DIRECTORY 0
+#endif
+
if (io->generic.in.create_options & NTCREATEX_OPTIONS_DIRECTORY) {
flags = O_RDONLY | O_DIRECTORY;
if (pvfs->flags & PVFS_FLAG_READONLY) {