sbmtpath);
if (!len) return num_shares;
p = pathName;
- if (strncmp(p, cm_mountRoot, 4) != 0)
+ if (strncmp(p, cm_mountRoot, strlen(cm_mountRoot)) != 0)
print_afs = 1;
while (*p) {
if (*p == '\\') *p = '/'; /* change to / */
/* We can accept either unix or PC style AFS pathnames. Convert
Unix-style to PC style here for internal use. */
p = pathName;
- if (strncmp(p, cm_mountRoot, 4) == 0)
+ if (strncmp(p, cm_mountRoot, strlen(cm_mountRoot) == 0)
p += strlen(cm_mountRoot); /* skip mount path */
q = p;
while (*q) {
dptr = patchp->dptr;
attr = smb_Attributes(scp);
- *dptr++ = attr;
-
/* check hidden attribute (the flag is only ON when dot file hiding is on ) */
if( patchp->flags & SMB_DIRLISTPATCH_DOTFILE )
attr |= SMB_ATTR_HIDDEN;
+ *dptr++ = attr;
/* get dos time */
smb_SearchTimeFromUnixTime(&dosTime, scp->clientModTime);