diff --git a/src/login/logind.c b/src/login/logind.c index 5220861c1d..373e43e1f7 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -453,8 +453,8 @@ static int manager_attach_fds(Manager *m) { continue; } - if (!S_ISCHR(st.st_mode) && !S_ISBLK(st.st_mode)) { - log_debug("Device fd doesn't actually point to device node: %m"); + if (!S_ISCHR(st.st_mode)) { + log_debug("Device fd doesn't point to a character device node"); close_nointr(fd); continue; }