cm_scache_t *substRootp = NULL;
cm_scache_t *iscp = NULL;
#endif
- char * relativePath = ioctlp->inDatap;
+ char * relativePath;
char * lastComponent = NULL;
afs_uint32 follow = 0;
+ relativePath = ioctlp->inDatap;
+ /* setup the next data value for the caller to use */
+ ioctlp->inDatap += (long)strlen(ioctlp->inDatap) + 1;;
+
osi_Log1(afsd_logp, "cm_ParseIoctlPath %s", osi_LogSaveString(afsd_logp,relativePath));
/* This is usually the file name, but for StatMountPoint it is the path. */
*/
TranslateExtendedChars(relativePath);
+ /* This is usually nothing, but for StatMountPoint it is the file name. */
+ TranslateExtendedChars(ioctlp->inDatap);
+
#ifdef AFSIFS
/* we have passed the whole path, including the afs prefix.
when the pioctl call is made, we perform an ioctl to afsrdr
}
#endif /* AFSIFS */
- /* # of bytes of path */
- code = (long)strlen(ioctlp->inDatap) + 1;
- ioctlp->inDatap += code;
-
- /* This is usually nothing, but for StatMountPoint it is the file name. */
- TranslateExtendedChars(ioctlp->inDatap);
-
if (substRootp)
cm_ReleaseSCache(substRootp);