svn commit: samba r2438 - in branches/SAMBA_4_0/source/ntvfs/posix: .

tridge at samba.org tridge at samba.org
Mon Sep 20 08:53:45 GMT 2004


Author: tridge
Date: 2004-09-20 08:53:45 +0000 (Mon, 20 Sep 2004)
New Revision: 2438

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/ntvfs/posix&rev=2438&nolog=1

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

Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c	2004-09-20 07:31:54 UTC (rev 2437)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c	2004-09-20 08:53:45 UTC (rev 2438)
@@ -84,6 +84,11 @@
 	
 	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) {



More information about the samba-cvs mailing list