diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-11-10 12:40:33 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:05:42 -0500 |
commit | e7810eeab787bb93b36c95f8783d0b8f4c7cf7c0 (patch) | |
tree | 71eee16274943f50b6a9747c48ce2b76da51f5a3 /source4/ntvfs/posix/pvfs_flush.c | |
parent | 70fbbdfdfd996b4d1b453a531154c3ad381048df (diff) | |
download | samba-e7810eeab787bb93b36c95f8783d0b8f4c7cf7c0.tar.gz samba-e7810eeab787bb93b36c95f8783d0b8f4c7cf7c0.tar.bz2 samba-e7810eeab787bb93b36c95f8783d0b8f4c7cf7c0.zip |
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)
Diffstat (limited to 'source4/ntvfs/posix/pvfs_flush.c')
-rw-r--r-- | source4/ntvfs/posix/pvfs_flush.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_flush.c b/source4/ntvfs/posix/pvfs_flush.c index 66a0cc5edf..5c1132db19 100644 --- a/source4/ntvfs/posix/pvfs_flush.c +++ b/source4/ntvfs/posix/pvfs_flush.c @@ -28,7 +28,7 @@ */ static void pvfs_flush_file(struct pvfs_state *pvfs, struct pvfs_file *f) { - if (f->handle->name->dos.attrib & FILE_ATTRIBUTE_DIRECTORY) { + if (f->handle->fd == -1) { return; } if (pvfs->flags & PVFS_FLAG_STRICT_SYNC) { |