[tz] [PROPOSED 1/4] Fix zdump diagnostic for missing timezone

Paul Eggert eggert at cs.ucla.edu
Sun Oct 15 20:10:49 UTC 2023


* zdump.c (main): Fix typo in diagnostic for ‘zdump -i nosuchzone’.
---
 zdump.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/zdump.c b/zdump.c
index 6f9573ec..7d99cc74 100644
--- a/zdump.c
+++ b/zdump.c
@@ -602,7 +602,7 @@ main(int argc, char *argv[])
 		if (!tz) {
 		  char const *e = strerror(errno);
 		  fprintf(stderr, _("%s: unknown timezone '%s': %s\n"),
-			  progname, argv[1], e);
+			  progname, argv[i], e);
 		  return EXIT_FAILURE;
 		}
 		if (now) {
-- 
2.41.0




More information about the tz mailing list