--- who.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/who.c b/who.c index 823142b..6093a84 100644 --- a/who.c +++ b/who.c _AT_@ -33,7 +33,8 @@ main(int argc, char **argv) eprintf("fopen:"); } while(fread(&usr, sizeof(usr), 1, ufp) == 1) { - if (!*usr.ut_name || !*usr.ut_line) + if (!*usr.ut_name || !*usr.ut_line || + usr.ut_line[0] == '~') continue; if (mflag && strcmp(usr.ut_line, strrchr(ttyname(STDIN_FILENO), '/') + 1)) -- 1.8.3.4 --gKMricLos+KVdGMg--Received on Mon Sep 17 2001 - 00:00:00 CEST
This archive was generated by hypermail 2.3.0 : Tue Aug 06 2013 - 11:00:03 CEST