summaryrefslogtreecommitdiffstats
path: root/usr.bin/wall
diff options
context:
space:
mode:
authorasmodai <asmodai@FreeBSD.org>2000-07-27 07:58:47 +0000
committerasmodai <asmodai@FreeBSD.org>2000-07-27 07:58:47 +0000
commit73a0a27f049be3efb2cbc8a97564337bc23a6f3b (patch)
tree155d4d82b1ebe933116ff245205abfbd88aa171d /usr.bin/wall
parenta92ef5a71e83e0bc48229a3b7f412d3ee6dde3ab (diff)
downloadFreeBSD-src-73a0a27f049be3efb2cbc8a97564337bc23a6f3b.zip
FreeBSD-src-73a0a27f049be3efb2cbc8a97564337bc23a6f3b.tar.gz
Let wall report the local timezone as well on output.
PR: 17867 Submitted by: Joel Ray Holveck <joelh@gnu.org> Nagged by: nrahlstr
Diffstat (limited to 'usr.bin/wall')
-rw-r--r--usr.bin/wall/wall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/wall/wall.c b/usr.bin/wall/wall.c
index 9412119..3bea44d 100644
--- a/usr.bin/wall/wall.c
+++ b/usr.bin/wall/wall.c
@@ -172,8 +172,8 @@ makemsg(fname)
whom, hostname);
(void)fprintf(fp, "%-79.79s\007\007\r\n", lbuf);
(void)snprintf(lbuf, sizeof(lbuf),
- " (%s) at %d:%02d ...", ttyname(2),
- lt->tm_hour, lt->tm_min);
+ " (%s) at %d:%02d %s...", ttyname(2),
+ lt->tm_hour, lt->tm_min, lt->tm_zone);
(void)fprintf(fp, "%-79.79s\r\n", lbuf);
}
(void)fprintf(fp, "%79s\r\n", " ");
OpenPOWER on IntegriCloud