diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-29 05:58:22 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:05:00 -0500 |
commit | d1a732dd2d0828cb3f1f67e86acffcb053ca6851 (patch) | |
tree | 82514b9457a583f72172c2470b9066f601046bf0 /source4/ntvfs | |
parent | b2df91639065168643ea8b921f24b879daf2e71f (diff) | |
download | samba-d1a732dd2d0828cb3f1f67e86acffcb053ca6851.tar.gz samba-d1a732dd2d0828cb3f1f67e86acffcb053ca6851.tar.bz2 samba-d1a732dd2d0828cb3f1f67e86acffcb053ca6851.zip |
r3353: don't reference dos.attrib unless its initialised
(This used to be commit 498799e4260b1c5e2bfc4fac4cba1080e8ec0a04)
Diffstat (limited to 'source4/ntvfs')
-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; } |