From 635f5fa942c2ecd82a2a787b96bf2ce2a587c616 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 20 Sep 2004 08:53:45 +0000 Subject: r2438: compile on systems without O_DIRECTORY (probably won't work, but I'll get to that later) (This used to be commit 5e2027f8ec7248e48d1dfb94c3688c78c64a85c5) --- source4/ntvfs/posix/pvfs_open.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4') diff --git a/source4/ntvfs/posix/pvfs_open.c b/source4/ntvfs/posix/pvfs_open.c index 74badb2443..26fd444984 100644 --- 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) { -- cgit