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:
parent
613a8633c9
commit
e9b57c82d1
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user