From 1a12f82f4b3815e710b3b42ead29882e320d722a Mon Sep 17 00:00:00 2001 From: jschauma Date: Mon, 9 Aug 2004 20:14:54 +0000 Subject: [PATCH] If a files date is any time in the future (not six months or more), use "date "+%b %e %Y"" format. This is what SUSv3 says. Ok jdolecek, dsl --- bin/ls/print.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/ls/print.c b/bin/ls/print.c index b1a86d546efd..ef1e1714ebc7 100644 --- a/bin/ls/print.c +++ b/bin/ls/print.c @@ -1,4 +1,4 @@ -/* $NetBSD: print.c,v 1.38 2003/12/26 06:19:19 grant Exp $ */ +/* $NetBSD: print.c,v 1.39 2004/08/09 20:14:54 jschauma Exp $ */ /* * Copyright (c) 1989, 1993, 1994 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)print.c 8.5 (Berkeley) 7/28/94"; #else -__RCSID("$NetBSD: print.c,v 1.38 2003/12/26 06:19:19 grant Exp $"); +__RCSID("$NetBSD: print.c,v 1.39 2004/08/09 20:14:54 jschauma Exp $"); #endif #endif /* not lint */ @@ -385,7 +385,7 @@ printtime(time_t ftime) if (f_sectime) for (i = 11; i < 24; i++) (void)putchar(longstring[i]); - else if (ftime + SIXMONTHS > now && ftime - SIXMONTHS < now) + else if (ftime + SIXMONTHS > now && ftime <= now) for (i = 11; i < 16; ++i) (void)putchar(longstring[i]); else {