Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Apr 2000 13:08:37 -0700 (PDT)
From:      Joel Ray Holveck <joelh@piqnet.org>
To:        freefall-gnats@piqnet.org
Subject:   bin/17867: wall does not report time zone [PATCH]
Message-ID:  <200004082008.NAA32966@detlev.piqnet.org>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004082008.NAA32966>