From: Sami Kerola Date: Mon, 26 Dec 2011 18:07:41 +0000 (+0100) Subject: w: indicate unknown host when -f is used X-Git-Tag: v3.3.3~137 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6241e9d545520defd6ceb5db4de55042927967d6;p=procps-ng w: indicate unknown host when -f is used The option -f used too print `-' to FROM column when host was not known. This commit changes behaviour back to what it was earlier. Signed-off-by: Sami Kerola --- diff --git a/w.c b/w.c index 3964e4f2..e3e9dbb0 100644 --- a/w.c +++ b/w.c @@ -78,6 +78,8 @@ static void print_host(const char *restrict host, int len, const int fromlen) fputc(*host, stdout); ++width; } else { + fputc('-', stdout); + ++width; break; } }