From 210798131482b72f4f9421a39f0bf1fad5ea9570 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Tue, 1 Aug 2023 16:40:42 +0200 Subject: [PATCH] Ensure user_home() is an absolute path --- mx.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mx.py b/mx.py index c8a0879b..e23837eb 100755 --- a/mx.py +++ b/mx.py @@ -690,6 +690,8 @@ def _parse_cmd_line(self, opts, firstParse): if opts.user_home is None or opts.user_home == '': abort('Could not find user home. Use --user-home option or ensure HOME environment variable is set.') + if not isabs(opts.user_home): + abort('--user-home must be an absolute path') if opts.primary and primary_suite(): opts.specific_suites.append(primary_suite().name)