]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
wall: send message also to sessions opened by user 'sleeper'
authorSami Kerola <kerolasa@iki.fi>
Sat, 17 Aug 2013 23:36:57 +0000 (00:36 +0100)
committerSami Kerola <kerolasa@iki.fi>
Thu, 29 Aug 2013 17:14:06 +0000 (18:14 +0100)
Ignoring an user by name, and not telling about it in manual page, is
unexpected.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
term-utils/wall.c

index 2d87e47db339a631533984557fd422689399d838..98dc5c7f43e5c00b8663ff30e541c2b4c60fbf5b 100644 (file)
@@ -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)