summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2023-03-15 12:46:45 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-03-15 15:13:48 +0100
commit637308aeb12552bb1a241cc39746cdc7f46d80ca (patch)
treeeb23758c66153c9a5ddd9567f866e5ad86839d57 /src
parente849a1d42178ffc80118e17ae2f10b940317bc9a (diff)
downloadjustbuild-637308aeb12552bb1a241cc39746cdc7f46d80ca.tar.gz
just-mr: follow symlinks to the rc-file, also on the default location
Diffstat (limited to 'src')
-rw-r--r--src/other_tools/just_mr/main.cpp4
1 files changed, 3 insertions, 1 deletions
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 <filesystem>
#include <utility>
#include <nlohmann/json.hpp>
@@ -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)) {