From 637308aeb12552bb1a241cc39746cdc7f46d80ca Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 15 Mar 2023 12:46:45 +0100 Subject: just-mr: follow symlinks to the rc-file, also on the default location --- src/other_tools/just_mr/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/other_tools/just_mr/main.cpp b/src/other_tools/just_mr/main.cpp index 34c1953d..fee0274c 100644 --- a/src/other_tools/just_mr/main.cpp +++ b/src/other_tools/just_mr/main.cpp @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include #include #include @@ -286,7 +287,8 @@ void SetupLogging(MultiRepoLogArguments const& clargs) { // set default if rcpath not given if (not clargs->common.norc) { if (not rc_path) { - rc_path = kDefaultRCPath; + rc_path = std::filesystem::weakly_canonical( + std::filesystem::absolute(kDefaultRCPath)); } else { if (not FileSystemManager::IsFile(*rc_path)) { -- cgit v1.2.3