From joelh@piqnet.org  Sat Apr  8 13:06:05 2000
Return-Path: <joelh@piqnet.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 <FreeBSD-gnats-submit@freebsd.org>; 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 <freefall-gnats@piqnet.org>; 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 <joelh@piqnet.org>
Reply-To: joelh@gnu.org
To: freefall-gnats@piqnet.org
Subject: wall does not report time zone [PATCH]
X-Send-Pr-Version: 3.2

>Number:         17867
>Category:       bin
>Synopsis:       wall does not report time zone [PATCH]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr  8 13:10:01 PDT 2000
>Closed-Date:    Thu Jul 27 00:59:02 PDT 2000
>Last-Modified:  Thu Jul 27 01:00:32 PDT 2000
>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:
State-Changed-From-To: open->closed 
State-Changed-By: asmodai 
State-Changed-When: Thu Jul 27 00:59:02 PDT 2000 
State-Changed-Why:  
Committed in revision 1.14 of wall.c. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=17867 
>Unformatted:
