summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tty-ask-password-agent/tty-ask-password-agent.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tty-ask-password-agent/tty-ask-password-agent.c b/src/tty-ask-password-agent/tty-ask-password-agent.c
index 7fc0ed7c8d..09835ca903 100644
--- a/src/tty-ask-password-agent/tty-ask-password-agent.c
+++ b/src/tty-ask-password-agent/tty-ask-password-agent.c
@@ -99,8 +99,7 @@ static bool wall_tty_match(const char *path, void *userdata) {
_cleanup_close_ int fd = -1;
struct stat st;
- if (!path_is_absolute(path))
- path = strjoina("/dev/", path);
+ assert(path_is_absolute(path));
if (lstat(path, &st) < 0) {
log_debug_errno(errno, "Failed to stat %s: %m", path);