1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

r2438: compile on systems without O_DIRECTORY (probably won't work, but I'll get to that later)

(This used to be commit 5e2027f8ec7248e48d1dfb94c3688c78c64a85c5)
This commit is contained in:
Andrew Tridgell 2004-09-20 08:53:45 +00:00 committed by Gerald (Jerry) Carter
parent f2815e8412
commit 635f5fa942

View File

@ -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) {