From: Stefaan De Roeck Date: Fri, 19 Aug 2005 20:34:34 +0000 (+0000) Subject: dirpath-canonical-should-be-local-20050819 X-Git-Tag: openafs-devel-1_5_0~362 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=3e6b71d7aad3aeea23e313c5c63f5e2abda07a7e;p=packages%2Fo%2Fopenafs.git dirpath-canonical-should-be-local-20050819 FIXES 20954 ConstructLocalPath only checks the first argument (cpath) for needed translation from canonical to local, but not the relativeTo path, which is simply prepended when cpath doesn't begin with a '/'. --- diff --git a/src/util/dirpath.c b/src/util/dirpath.c index 188042dbd..db4aa01ba 100644 --- a/src/util/dirpath.c +++ b/src/util/dirpath.c @@ -641,7 +641,7 @@ ConstructLocalPath(const char *cpath, const char *relativeTo, int ConstructLocalBinPath(const char *cpath, char **fullPathBufp) { - return ConstructLocalPath(cpath, AFSDIR_CANONICAL_SERVER_BIN_DIRPATH, + return ConstructLocalPath(cpath, AFSDIR_SERVER_BIN_DIRPATH, fullPathBufp); } @@ -654,6 +654,6 @@ ConstructLocalBinPath(const char *cpath, char **fullPathBufp) int ConstructLocalLogPath(const char *cpath, char **fullPathBufp) { - return ConstructLocalPath(cpath, AFSDIR_CANONICAL_SERVER_LOGS_DIRPATH, + return ConstructLocalPath(cpath, AFSDIR_SERVER_LOGS_DIRPATH, fullPathBufp); }