Module Name: src
Committed By: jmmv
Date: Mon Feb 27 17:56:15 UTC 2012
Modified Files:
src/usr.sbin/postinstall: postinstall
Log Message:
Populate /etc/atf with any missing files. Fixes PR bin/45870.
To generate a diff of this commit:
cvs rdiff -u -r1.134 -r1.135 src/usr.sbin/postinstall/postinstall
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/postinstall/postinstall
diff -u src/usr.sbin/postinstall/postinstall:1.134 src/usr.sbin/postinstall/postinstall:1.135
--- src/usr.sbin/postinstall/postinstall:1.134 Wed Feb 22 16:42:07 2012
+++ src/usr.sbin/postinstall/postinstall Mon Feb 27 17:56:14 2012
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: postinstall,v 1.134 2012/02/22 16:42:07 apb Exp $
+# $NetBSD: postinstall,v 1.135 2012/02/27 17:56:14 jmmv Exp $
#
# Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -1605,6 +1605,10 @@ do_atf()
op="$1"
failed=0
+ populate_dir "${op}" true \
+ "${SRC_DIR}/etc/atf" "${DEST_DIR}/etc/atf" 644 \
+ NetBSD.conf atf-run.hooks common.conf
+
if grep '[^#]*unprivileged-user[ \t]*=.*_atf' \
"${DEST_DIR}/etc/atf/common.conf" >/dev/null
then