From dfbb4d03ee9ad19ba166f57421eb2fd880a8633f Mon Sep 17 00:00:00 2001 From: shdown Date: Sat, 20 Sep 2014 15:31:58 +0400 Subject: TOOLS/umpv: print error message to stderr --- TOOLS/umpv | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'TOOLS') diff --git a/TOOLS/umpv b/TOOLS/umpv index 29affe2437..61644539b3 100755 --- a/TOOLS/umpv +++ b/TOOLS/umpv @@ -87,7 +87,8 @@ if fifo_fd >= 0: if (((st.st_mode & (stat.S_IRWXG | stat.S_IRWXO)) != 0) or (not stat.S_ISFIFO(st.st_mode)) or (st.st_uid != os.getuid())): - print("error: command FIFO is not a FIFO or has bogus permissions") + sys.stderr.write("error: command FIFO is not a FIFO or has bogus " + "permissions\n") sys.exit(1) if fifo_fd >= 0: -- cgit v1.2.3