summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-06-03 22:56:57 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-06-03 22:56:57 +0000
commit452ca2021106ba6907e1b37629b50afbeb7bf3d2 (patch)
treef9d62841069ac9d08e398ece41a72184fd7091e8 /etc
parentf08d0e88670a110af5640d0ec906f0a9b2367480 (diff)
by means of utilising -f avoid some warnings when rotating accounting files; millert@ ok
Diffstat (limited to 'etc')
-rw-r--r--etc/daily10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/daily b/etc/daily
index 2687ec7fc1e..e11318d4dca 100644
--- a/etc/daily
+++ b/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