We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03a7f3b commit 7f72572Copy full SHA for 7f72572
easybuild/framework/easyblock.py
@@ -4309,7 +4309,9 @@ def build_and_install_one(ecdict, init_env):
4309
def ensure_writable_log_dir(log_dir):
4310
"""Make sure we can write into the log dir"""
4311
if build_option('read_only_installdir'):
4312
- # temporarily re-enable write permissions for copying log/easyconfig to install dir
+ # temporarily re-enable write permissions for copying log/easyconfig to install dir,
4313
+ # ensuring that we resolve symlinks
4314
+ log_dir = os.path.realpath(log_dir, strict=True)
4315
if os.path.exists(log_dir):
4316
adjust_permissions(log_dir, stat.S_IWUSR, add=True, recursive=True)
4317
else:
0 commit comments