summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1995-08-08 03:32:03 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1995-08-08 03:32:03 +0000
commit3bef267d25349db6f066028bf40afe21bcd46e85 (patch)
tree217ea4403718edaf587ab1ffdb3d292005c5b790
parent668eb4585fdc164068938c04db9332e943073f10 (diff)
Notes
-rw-r--r--usr.bin/ar/contents.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ar/contents.c b/usr.bin/ar/contents.c
index dc45b361345c..e000d535dc59 100644
--- a/usr.bin/ar/contents.c
+++ b/usr.bin/ar/contents.c
@@ -77,8 +77,10 @@ contents(argv)
(void)printf("%s %6d/%-6d %8qd ",
buf + 1, chdr.uid, chdr.gid, chdr.size);
tp = localtime(&chdr.date);
- (void)strftime(buf, sizeof(buf), "%b %e %H:%M %Y", tp);
- (void)printf("%s %s\n", buf, file);
+ (void)strftime(buf, sizeof(buf), "%c", tp);
+ buf[16] = '\0';
+ buf[24] = '\0';
+ (void)printf("%s %s %s\n", buf + 4, buf + 20, file);
} else
(void)printf("%s\n", file);
if (!all && !*argv)