mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
windows-freelance-20090312
LICENSE MIT correct error in windows-freelance-20090223. use cpath not filename since that is why we allocated cpath in the first place.
This commit is contained in:
parent
ef81e9395c
commit
7ca2785f53
@ -1083,7 +1083,7 @@ long cm_FreelanceAddMount(char *filename, char *cellname, char *volume, int rw,
|
||||
cpath = cm_FsStringToClientStringAlloc(filename, -1, NULL);
|
||||
if (!cpath)
|
||||
return CM_ERROR_NOSUCHPATH;
|
||||
code = cm_NameI(cm_data.rootSCachep, filename,
|
||||
code = cm_NameI(cm_data.rootSCachep, cpath,
|
||||
CM_FLAG_FOLLOW | CM_FLAG_CASEFOLD | CM_FLAG_DFS_REFERRAL,
|
||||
cm_rootUserp, NULL, &req, &scp);
|
||||
free(cpath);
|
||||
@ -1312,7 +1312,7 @@ long cm_FreelanceAddSymlink(char *filename, char *destination, cm_fid_t *fidp)
|
||||
cpath = cm_FsStringToClientStringAlloc(filename, -1, NULL);
|
||||
if (!cpath)
|
||||
return CM_ERROR_NOSUCHPATH;
|
||||
code = cm_NameI(cm_data.rootSCachep, filename,
|
||||
code = cm_NameI(cm_data.rootSCachep, cpath,
|
||||
CM_FLAG_FOLLOW | CM_FLAG_CASEFOLD | CM_FLAG_DFS_REFERRAL,
|
||||
cm_rootUserp, NULL, &req, &scp);
|
||||
free(cpath);
|
||||
|
Loading…
x
Reference in New Issue
Block a user