From 8d49c1a85c3af8c6a05fb7d459e699c36d5b9f97 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Mon, 12 Jul 2004 13:15:13 +0000 Subject: [PATCH] Mimic ls(1) by putting an extra space before the year in old dates --- usr.bin/tar/read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/tar/read.c b/usr.bin/tar/read.c index b66ffed836d1..b99d2e0c794d 100644 --- a/usr.bin/tar/read.c +++ b/usr.bin/tar/read.c @@ -278,7 +278,7 @@ list_item_verbose(struct bsdtar *bsdtar, struct archive_entry *entry) /* Format the time using 'ls -l' conventions. */ tim = (time_t)st->st_mtime; if (tim < now - 6*30*24*60*60 || tim > now + 6*30*24*60*60) - strftime(tmp, sizeof(tmp), "%b %e %Y", localtime(&tim)); + strftime(tmp, sizeof(tmp), "%b %e %Y", localtime(&tim)); else strftime(tmp, sizeof(tmp), "%b %e %R", localtime(&tim)); safe_fprintf(out, " %s %s", tmp, archive_entry_pathname(entry));