From e7810eeab787bb93b36c95f8783d0b8f4c7cf7c0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 10 Nov 2004 12:40:33 +0000 Subject: r3658: use handle->fd == -1 as the primary indicator of a directory. This fixes a directory creation problem from WinXP (This used to be commit 4b3afc6c395b430e7e56d8ebe0ddf85c556a5df5) --- source4/ntvfs/posix/pvfs_read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/ntvfs/posix/pvfs_read.c') diff --git a/source4/ntvfs/posix/pvfs_read.c b/source4/ntvfs/posix/pvfs_read.c index 5598ccfb08..0f7d3b4b0c 100644 --- a/source4/ntvfs/posix/pvfs_read.c +++ b/source4/ntvfs/posix/pvfs_read.c @@ -46,7 +46,7 @@ NTSTATUS pvfs_read(struct ntvfs_module_context *ntvfs, return NT_STATUS_INVALID_HANDLE; } - if (f->handle->name->dos.attrib & FILE_ATTRIBUTE_DIRECTORY) { + if (f->handle->fd == -1) { return NT_STATUS_FILE_IS_A_DIRECTORY; } -- cgit