]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-freelance-20090312
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 14 Mar 2009 04:51:19 +0000 (04:51 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 14 Mar 2009 04:51:19 +0000 (04:51 +0000)
LICENSE MIT

correct error in windows-freelance-20090223.  use cpath not filename
since that is why we allocated cpath in the first place.

(cherry picked from commit 7ca2785f53d391afa5e7200f2b4d40c79a857443)

src/WINNT/afsd/cm_freelance.c

index 4bdfaba42b2425dd79f2365b2b1576241ca8b98f..e557a095dd2d2d921545381d4ba3ff9325d66f0b 100644 (file)
@@ -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);