svn commit: samba r3353 - in branches/SAMBA_4_0/source/ntvfs/posix:
.
tridge at samba.org
tridge at samba.org
Fri Oct 29 05:58:22 GMT 2004
Author: tridge
Date: 2004-10-29 05:58:22 +0000 (Fri, 29 Oct 2004)
New Revision: 3353
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3353
Log:
don't reference dos.attrib unless its initialised
Modified:
branches/SAMBA_4_0/source/ntvfs/posix/pvfs_resolve.c
Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_resolve.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_resolve.c 2004-10-29 05:31:35 UTC (rev 3352)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_resolve.c 2004-10-29 05:58:22 UTC (rev 3353)
@@ -510,7 +510,7 @@
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;
}
More information about the samba-cvs
mailing list