mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 23:40:13 +00:00
Windows: minor cm_ioctl corrections
remove unused variable fix a comment to reference correct function name remove debugging windows event log entry that doesn't belong in production code Change-Id: Id81cfccd2c2c15d7fcbdbb5edc7dcb095abbd665 Reviewed-on: http://gerrit.openafs.org/5426 Reviewed-by: Jeffrey Altman <jaltman@openafs.org> Tested-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
parent
cf57eb294f
commit
d355b4d6fc
@ -2091,15 +2091,13 @@ cm_IoctlSymlink(struct cm_ioctl *ioctlp, struct cm_user *userp, cm_scache_t *dsc
|
|||||||
afs_int32 code;
|
afs_int32 code;
|
||||||
cm_attr_t tattr;
|
cm_attr_t tattr;
|
||||||
char *cp;
|
char *cp;
|
||||||
char *symlp;
|
|
||||||
int free_syml = FALSE;
|
|
||||||
|
|
||||||
if (!(ioctlp->flags & CM_IOCTLFLAG_USEUTF8)) {
|
if (!(ioctlp->flags & CM_IOCTLFLAG_USEUTF8)) {
|
||||||
/* Translate chars for the linked to name */
|
/* Translate chars for the linked to name */
|
||||||
TranslateExtendedChars(ioctlp->inDatap);
|
TranslateExtendedChars(ioctlp->inDatap);
|
||||||
}
|
}
|
||||||
|
|
||||||
cp = symlp = ioctlp->inDatap; /* contents of link */
|
cp = ioctlp->inDatap; /* contents of link */
|
||||||
|
|
||||||
#ifdef AFS_FREELANCE_CLIENT
|
#ifdef AFS_FREELANCE_CLIENT
|
||||||
if (cm_freelanceEnabled && dscp == cm_data.rootSCachep) {
|
if (cm_freelanceEnabled && dscp == cm_data.rootSCachep) {
|
||||||
@ -2118,7 +2116,7 @@ cm_IoctlSymlink(struct cm_ioctl *ioctlp, struct cm_user *userp, cm_scache_t *dsc
|
|||||||
cp = p;
|
cp = p;
|
||||||
}
|
}
|
||||||
|
|
||||||
osi_Log0(afsd_logp,"IoctlCreateSymlink within Freelance root dir");
|
osi_Log0(afsd_logp,"IoctlSymlink within Freelance root dir");
|
||||||
fsleaf = cm_ClientStringToFsStringAlloc(leaf, -1, NULL);
|
fsleaf = cm_ClientStringToFsStringAlloc(leaf, -1, NULL);
|
||||||
code = cm_FreelanceAddSymlink(fsleaf, cp, NULL);
|
code = cm_FreelanceAddSymlink(fsleaf, cp, NULL);
|
||||||
free(fsleaf);
|
free(fsleaf);
|
||||||
@ -2231,7 +2229,6 @@ cm_IoctlIslink(struct cm_ioctl *ioctlp, struct cm_user *userp, cm_scache_t *dscp
|
|||||||
TranslateExtendedChars(ioctlp->inDatap);
|
TranslateExtendedChars(ioctlp->inDatap);
|
||||||
}
|
}
|
||||||
cp = ioctlp->inDatap;
|
cp = ioctlp->inDatap;
|
||||||
osi_LogEvent("cm_IoctlListlink",NULL," name[%s]",cp);
|
|
||||||
|
|
||||||
clientp = cm_Utf8ToClientStringAlloc(cp, -1, NULL);
|
clientp = cm_Utf8ToClientStringAlloc(cp, -1, NULL);
|
||||||
code = cm_Lookup(dscp, clientp[0] ? clientp : L".", CM_FLAG_NOMOUNTCHASE, userp, reqp, &scp);
|
code = cm_Lookup(dscp, clientp[0] ? clientp : L".", CM_FLAG_NOMOUNTCHASE, userp, reqp, &scp);
|
||||||
|
Loading…
Reference in New Issue
Block a user