From 6297d767effba131b95a644f6cd54c21690e48f7 Mon Sep 17 00:00:00 2001 From: lukem Date: Tue, 18 Dec 2001 00:51:16 +0000 Subject: [PATCH] Ignore errors from /var/account/acct.[123] rotation. Fix from Katsuomi Hamajima in [misc/13804] --- etc/daily | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/daily b/etc/daily index 775daaa1ec42..3271e9f578fc 100644 --- a/etc/daily +++ b/etc/daily @@ -1,6 +1,6 @@ #!/bin/sh - # -# $NetBSD: daily,v 1.44 2001/12/18 00:48:05 lukem Exp $ +# $NetBSD: daily,v 1.45 2001/12/18 00:51:16 lukem Exp $ # @(#)daily 8.2 (Berkeley) 1/25/94 # @@ -115,9 +115,9 @@ fi if checkyesno purge_accounting && [ -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 + mv /var/account/acct.2 /var/account/acct.3 2>/dev/null + mv /var/account/acct.1 /var/account/acct.2 2>/dev/null + mv /var/account/acct.0 /var/account/acct.1 2>/dev/null cp /var/account/acct /var/account/acct.0 sa -sq fi