1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-25 22:36:13 +01:00

Modify conf.get_config() to print permissions warning to stderr rather than stdout

This commit is contained in:
Daniel Mach 2024-06-24 21:13:47 +02:00
parent 613a8633c9
commit e9b57c82d1

View File

@ -1875,7 +1875,7 @@ def get_config(override_conffile=None,
os.chmod(conffile, 0o600)
except OSError as e:
if e.errno in (errno.EROFS, errno.EPERM):
print(f"Warning: Configuration file '{conffile}' may have insecure file permissions.")
print(f"Warning: Configuration file '{conffile}' may have insecure file permissions.", file=sys.stderr)
else:
raise e