From 3e6b71d7aad3aeea23e313c5c63f5e2abda07a7e Mon Sep 17 00:00:00 2001 From: Stefaan De Roeck Date: Fri, 19 Aug 2005 20:34:34 +0000 Subject: [PATCH] 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 '/'. --- src/util/dirpath.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.39.5