misc/162908: zdump doesn't know progname

Oleg Ginzburg olevole at olevole.ru
Sun Nov 27 18:00:22 UTC 2011

>Number:         162908
>Category:       misc
>Synopsis:       zdump doesn't know progname
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 27 18:00:20 UTC 2011
>Originator:     Oleg Ginzburg
>Release:        9.0-PRERELEASE
The progname variable in zdump(8) is equal null

Something like progname=argv[0] or getprogname(3) missed
% zdump -z  

(usage: (null) [--version] [-v] [--help] [-c [loyear,]hiyear] zonename ...)


Patch attached with submission follows:

diff -ruN /usr/src/contrib/tzcode/zic.bak/zdump.c /usr/src/contrib/tzcode/zic/zdump.c
--- /usr/src/contrib/tzcode/zic.bak/zdump.c	2011-11-27 21:42:58.776739066 +0400
+++ /usr/src/contrib/tzcode/zic/zdump.c	2011-11-27 21:43:38.735740140 +0400
@@ -260,6 +260,7 @@
 	register struct tm *	tmp;
 	register struct tm *	newtmp;
+	progname=argv[0];


More information about the freebsd-bugs mailing list