diff options
author | Sami Kerola | 2013-08-18 01:36:57 +0200 |
---|---|---|
committer | Sami Kerola | 2013-08-29 19:14:06 +0200 |
commit | cff0667f4285c7faff710c88aee06ab36056f06f (patch) | |
tree | 67b2360f3dcf39b996aa949cf8afa0db15fd27fb /term-utils | |
parent | build-sys: pylibmount will not work when python3 is present (diff) | |
download | kernel-qcow2-util-linux-cff0667f4285c7faff710c88aee06ab36056f06f.tar.gz kernel-qcow2-util-linux-cff0667f4285c7faff710c88aee06ab36056f06f.tar.xz kernel-qcow2-util-linux-cff0667f4285c7faff710c88aee06ab36056f06f.zip |
wall: send message also to sessions opened by user 'sleeper'
Ignoring an user by name, and not telling about it in manual page, is
unexpected.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'term-utils')
-rw-r--r-- | term-utils/wall.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/term-utils/wall.c b/term-utils/wall.c index 2d87e47db..98dc5c7f4 100644 --- a/term-utils/wall.c +++ b/term-utils/wall.c @@ -69,7 +69,6 @@ #include "fileutils.h" #include "closestream.h" -#define IGNOREUSER "sleeper" #define WRITE_TIME_OUT 300 /* in seconds */ /* Function prototypes */ @@ -157,9 +156,7 @@ int main(int argc, char **argv) iov.iov_base = mbuf; iov.iov_len = mbufsize; while((utmpptr = getutent())) { - if (!utmpptr->ut_name[0] || - !strncmp(utmpptr->ut_name, IGNOREUSER, - sizeof(utmpptr->ut_name))) + if (!utmpptr->ut_name[0]) continue; #ifdef USER_PROCESS if (utmpptr->ut_type != USER_PROCESS) |