winnt-give-nosuchpath-if-thats-what-we-mean-20030314
authorRyan Lantzer <lantzer@umr.edu>
Fri, 14 Mar 2003 19:45:40 +0000 (19:45 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 14 Mar 2003 19:45:40 +0000 (19:45 +0000)
FIXES 1329

"The Windows AFS client returns the error
ERROR_NOSUCHFILE, where the same request on a local NTFS volume returns
the error ERROR_NOSUCHPATH."

src/WINNT/afsd/smb3.c

index 4273525..f5c38ec 100644 (file)
@@ -3139,7 +3139,7 @@ long smb_ReceiveNTCreateX(smb_vc_t *vcp, smb_packet_t *inp, smb_packet_t *outp)
            || (fidflags & (SMB_FID_OPENDELETE | SMB_FID_OPENWRITE))) {
                /* look up parent directory */
                code = cm_NameI(baseDirp, spacep->data,
-                               CM_FLAG_FOLLOW | CM_FLAG_CASEFOLD,
+                               CM_FLAG_FOLLOW | CM_FLAG_CASEFOLD | CM_FLAG_CHECKPATH,
                                userp, tidPathp, &req, &dscp);
 
                if (baseFid != 0) smb_ReleaseFID(baseFidp);