diff options
Diffstat (limited to 'source4/ntvfs/posix/pvfs_resolve.c')
-rw-r--r-- | source4/ntvfs/posix/pvfs_resolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_resolve.c b/source4/ntvfs/posix/pvfs_resolve.c index be1662437e..672d028dd5 100644 --- a/source4/ntvfs/posix/pvfs_resolve.c +++ b/source4/ntvfs/posix/pvfs_resolve.c @@ -510,7 +510,7 @@ NTSTATUS pvfs_resolve_name_fd(struct pvfs_state *pvfs, int fd, inode = name->st.st_ino; } - if (name->dos.attrib & FILE_ATTRIBUTE_DIRECTORY) { + if (name->exists && (name->dos.attrib & FILE_ATTRIBUTE_DIRECTORY)) { if (stat(name->full_name, &name->st) == -1) { return NT_STATUS_INVALID_HANDLE; } |