From 06f0e69e2076cdcee0e3b2c3be96540f61a0c07a Mon Sep 17 00:00:00 2001 From: mickey <> Date: Tue, 3 Jun 2003 22:56:56 +0000 Subject: [PATCH] by means of utilising -f avoid some warnings when rotating accounting files; millert@ ok --- src/etc/daily | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/etc/daily b/src/etc/daily index 2687ec7f..e11318d4 100644 --- a/src/etc/daily +++ b/src/etc/daily @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: daily,v 1.43 2003/03/28 21:32:30 jmc Exp $ +# $OpenBSD: daily,v 1.44 2003/06/03 22:56:56 mickey Exp $ # From: @(#)daily 8.2 (Berkeley) 1/25/94 # PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin @@ -82,10 +82,10 @@ fi if [ -f /var/account/acct ]; then echo "" echo "Purging accounting records:" - mv /var/account/acct.2 /var/account/acct.3 - mv /var/account/acct.1 /var/account/acct.2 - mv /var/account/acct.0 /var/account/acct.1 - cp /var/account/acct /var/account/acct.0 + mv -f /var/account/acct.2 /var/account/acct.3 + mv -f /var/account/acct.1 /var/account/acct.2 + mv -f /var/account/acct.0 /var/account/acct.1 + cp -f /var/account/acct /var/account/acct.0 sa -sq fi