]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tty-ask-password-agent: don't warn if we cannot disable wall messages on the calling tty
authorLennart Poettering <lennart@poettering.net>
Wed, 14 Oct 2015 14:24:25 +0000 (16:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 14 Oct 2015 14:24:25 +0000 (16:24 +0200)
For example, due to perm issues.

THis simply downgrades the message about it, since this is purely
cosmetical anyway.

Fixes #1543.

src/tty-ask-password-agent/tty-ask-password-agent.c

index 93cce186f06f0f19211e9156e76f3fc8d2e6c7e1..53986babaeeadfae40dc9d9a9773f8f288d56cd0 100644 (file)
@@ -381,7 +381,7 @@ static int wall_tty_block(void) {
 
         fd = open(p, O_RDONLY|O_CLOEXEC|O_NONBLOCK|O_NOCTTY);
         if (fd < 0)
-                return log_error_errno(errno, "Failed to open %s: %m", p);
+                return log_debug_errno(errno, "Failed to open %s: %m", p);
 
         return fd;
 }