summaryrefslogtreecommitdiffstats
path: root/bin/ls/print.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-03-24 16:38:02 +0000
committerjhb <jhb@FreeBSD.org>2006-03-24 16:38:02 +0000
commit3d92b82bd8ba73b42a6a9ac9a402858ba7562172 (patch)
tree7e29299b116232736273c0ea1c22bfb2ba2ba8de /bin/ls/print.c
parent0f0a98fed88d1f3b6c70ffa9b1ce7142f85e8e78 (diff)
downloadFreeBSD-src-3d92b82bd8ba73b42a6a9ac9a402858ba7562172.zip
FreeBSD-src-3d92b82bd8ba73b42a6a9ac9a402858ba7562172.tar.gz
Add a new -U flag to instruct ls to use the birthtime for printing or
sorting. Submitted by: Andrzej Tobola ato at iem dot pw dot edu dot pl MFC after: 1 week
Diffstat (limited to 'bin/ls/print.c')
-rw-r--r--bin/ls/print.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/ls/print.c b/bin/ls/print.c
index 185b418..8ca40e2 100644
--- a/bin/ls/print.c
+++ b/bin/ls/print.c
@@ -190,6 +190,8 @@ printlong(const DISPLAY *dp)
printsize(dp->s_size, sp->st_size);
if (f_accesstime)
printtime(sp->st_atime);
+ else if (f_birthtime)
+ printtime(sp->st_birthtime);
else if (f_statustime)
printtime(sp->st_ctime);
else
OpenPOWER on IntegriCloud