Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jul 2017 06:15:44 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r320723 - head/usr.bin/stat/tests
Message-ID:  <201707060615.v666Fi56035567@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Thu Jul  6 06:15:44 2017
New Revision: 320723
URL: https://svnweb.freebsd.org/changeset/base/320723

Log:
  Use %e instead of %d with x_output_date(..)
  
  stat -x doesn't 0-fill days so %d is inappropriate. %e is correct.
  
  MFC after:	1 week
  MFC with:	r319841

Modified:
  head/usr.bin/stat/tests/stat_test.sh

Modified: head/usr.bin/stat/tests/stat_test.sh
==============================================================================
--- head/usr.bin/stat/tests/stat_test.sh	Thu Jul  6 05:59:27 2017	(r320722)
+++ head/usr.bin/stat/tests/stat_test.sh	Thu Jul  6 06:15:44 2017	(r320723)
@@ -165,7 +165,7 @@ t_flag_body()
 
 x_output_date()
 {
-	local date_format='%a %b %d %H:%M:%S %Y'
+	local date_format='%a %b %e %H:%M:%S %Y'
 
 	stat -t "$date_format" "$@"
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707060615.v666Fi56035567>