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

tridge at samba.org tridge at samba.org
Sun Nov 14 23:37:02 GMT 2004


Author: tridge
Date: 2004-11-14 23:37:02 +0000 (Sun, 14 Nov 2004)
New Revision: 3741

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3741

Log:
FILE_ATTRIBUTE_DIRECTORY is illegal in open of a file

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-11-14 23:10:04 UTC (rev 3740)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c	2004-11-14 23:37:02 UTC (rev 3741)
@@ -809,6 +809,10 @@
 		flags |= O_RDONLY;
 	}
 
+	if (io->generic.in.file_attr & FILE_ATTRIBUTE_DIRECTORY) {
+		return NT_STATUS_INVALID_PARAMETER;
+	}
+
 	/* handle creating a new file separately */
 	if (!name->exists) {
 		status = pvfs_create_file(pvfs, req, name, io);



More information about the samba-cvs mailing list