Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc Use %d instead of %e to generate rdist log filename usin...



details:   https://anonhg.NetBSD.org/src/rev/ef25db406129
branches:  trunk
changeset: 480225:ef25db406129
user:      enami <enami%NetBSD.org@localhost>
date:      Fri Jan 07 03:52:23 2000 +0000

description:
Use %d instead of %e to generate rdist log filename using date(1) so that
the resulting filename doesn't contain white space.

diffstat:

 etc/daily |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 81ad6e8e57f0 -r ef25db406129 etc/daily
--- a/etc/daily Fri Jan 07 03:47:15 2000 +0000
+++ b/etc/daily Fri Jan 07 03:52:23 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: daily,v 1.29 1999/01/06 03:24:06 abs Exp $
+#      $NetBSD: daily,v 1.30 2000/01/07 03:52:23 enami Exp $
 #      @(#)daily       8.2 (Berkeley) 1/25/94
 #
 
@@ -205,7 +205,7 @@
 if checkyesno run_rdist && [ -f /etc/Distfile ]; then
        echo "Running rdist:"
        if [ -d /var/log/rdist ]; then
-               logf=`date +%Y.%b.%e`
+               logf=`date +%Y.%b.%d`
                rdist -f /etc/Distfile 2>&1 | tee /var/log/rdist/$logf
        else
                rdist -f /etc/Distfile 



Home | Main Index | Thread Index | Old Index