printtime: use the Unix epoch if the file's timestamp is invalid
authormillert <millert@openbsd.org>
Wed, 27 Mar 2024 14:44:52 +0000 (14:44 +0000)
committermillert <millert@openbsd.org>
Wed, 27 Mar 2024 14:44:52 +0000 (14:44 +0000)
commitba906cc60a26c59b99faad7f7bfb01641b9d63ca
tree9f72b9c37675bb20bbf2e2322e05606e4caae463
parent5348ece4031af0290933fd7bff020f6717070645
printtime: use the Unix epoch if the file's timestamp is invalid
Fixes a crash in "ls -l" for files with bogus timestamp values.
OK miod@ denis@
bin/ls/print.c