From 5961a5ef84f9696d6a6212efdf2e6e8465289009 Mon Sep 17 00:00:00 2001 From: kientzle Date: Mon, 12 Jul 2004 13:15:13 +0000 Subject: 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(-) (limited to 'usr.bin/tar') diff --git a/usr.bin/tar/read.c b/usr.bin/tar/read.c index b66ffed..b99d2e0 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)); -- cgit v1.1