aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/etcupdate
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2014-01-22 16:59:53 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2014-01-22 16:59:53 +0000
commit385d6d47381b7b91803894b4509667558442bac5 (patch)
tree8ef7f4c487980321f126092e56db4386567ccc57 /usr.sbin/etcupdate
parentcddcca2dc37e950f59e247cc6bbbabb7da6b40c5 (diff)
Notes
Diffstat (limited to 'usr.sbin/etcupdate')
-rwxr-xr-xusr.sbin/etcupdate/etcupdate.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/etcupdate/etcupdate.sh b/usr.sbin/etcupdate/etcupdate.sh
index addcc14e5366e..a4728fa59b2e8 100755
--- a/usr.sbin/etcupdate/etcupdate.sh
+++ b/usr.sbin/etcupdate/etcupdate.sh
@@ -213,7 +213,8 @@ build_tree()
# Purge auto-generated files. Only the source files need to
# be updated after which these files are regenerated.
- rm -f $1/etc/*.db $1/etc/passwd >&3 2>&1 || return 1
+ rm -f $1/etc/*.db $1/etc/passwd $1/var/db/services.db >&3 2>&1 || \
+ return 1
# Remove empty files. These just clutter the output of 'diff'.
find $1 -type f -size 0 -delete >&3 2>&1 || return 1