From e9b57c82d1cdab89f66783f10957ac6c7c9ee5fc Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Mon, 24 Jun 2024 21:13:47 +0200 Subject: [PATCH] Modify conf.get_config() to print permissions warning to stderr rather than stdout --- osc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/conf.py b/osc/conf.py index 7b9e677a..468296d5 100644 --- a/osc/conf.py +++ b/osc/conf.py @@ -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