From owner-freebsd-bugs Sat Apr 8 13:10: 9 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 0BFA737B610 for ; Sat, 8 Apr 2000 13:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id NAA68306; Sat, 8 Apr 2000 13:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from heimdall.piqnet.org (adsl-63-197-64-194.dsl.snfc21.pacbell.net [63.197.64.194]) by hub.freebsd.org (Postfix) with ESMTP id C0CD337B680 for ; Sat, 8 Apr 2000 13:06:04 -0700 (PDT) (envelope-from joelh@piqnet.org) Received: from detlev.piqnet.org (root@detlev.pvt.piqnet.org [192.168.13.1]) by heimdall.piqnet.org (8.9.3/8.9.3) with ESMTP id NAA07125 for ; Sat, 8 Apr 2000 13:11:00 -0700 (PDT) (envelope-from joelh@piqnet.org) Received: (from joelh@localhost) by detlev.piqnet.org (8.9.3/8.9.3) id NAA32966; Sat, 8 Apr 2000 13:08:37 -0700 (PDT) (envelope-from joelh@piqnet.org) Message-Id: <200004082008.NAA32966@detlev.piqnet.org> Date: Sat, 8 Apr 2000 13:08:37 -0700 (PDT) From: Joel Ray Holveck Reply-To: joelh@gnu.org To: freefall-gnats@piqnet.org X-Send-Pr-Version: 3.2 Subject: bin/17867: wall does not report time zone [PATCH] Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 17867 >Category: bin >Synopsis: wall does not report time zone [PATCH] >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Apr 8 13:10:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Joel Ray Holveck >Release: FreeBSD 4.0-CURRENT i386 >Organization: >Environment: i386/4.0-CURRENT from 11 Feb 2000 >Description: wall, even though it uses the user's TZ variable, does not include the timezone information in the banner sent. >How-To-Repeat: $ export TZ=PST8PDT $ echo 'foo' | wall $ export TZ=CST6CDT $ echo 'bar' | wall >Fix: Apply the attached patch to usr.bin/wall.c --- wall.c.orig Sat Apr 8 13:00:11 2000 +++ wall.c Sat Apr 8 12:58:32 2000 @@ -172,8 +172,8 @@ 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", " "); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message