diff --git a/swh/storage/vault/cookers/base.py b/swh/storage/vault/cookers/base.py --- a/swh/storage/vault/cookers/base.py +++ b/swh/storage/vault/cookers/base.py @@ -168,6 +168,7 @@ if perms not in (0o100644, 0o100755, 0o120000): logging.warning('File {} has invalid permission {}, ' 'defaulting to 644.'.format(path, perms)) + perms = 0o100644 if perms == 0o120000: # Symbolic link os.symlink(content, path)