Pull up following revision(s) (requested by hubertf in ticket #301): netbsd-4
authorriz <riz@NetBSD.org>
Sat, 30 Dec 2006 05:28:18 +0000
branchnetbsd-4
changeset 260768 367b1a43267e
parent 260767 7f38939b410e
child 260769 61807adcbcd2
Pull up following revision(s) (requested by hubertf in ticket #301): etc/daily: revision 1.69 Make the daily script immune to changes of the current working directory in /etc/daily.local. Fixed PR misc/33461.
etc/daily
--- a/etc/daily	Sat Dec 30 05:25:28 2006 +0000
+++ b/etc/daily	Sat Dec 30 05:28:18 2006 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#	$NetBSD: daily,v 1.68 2006/11/12 01:22:57 christos Exp $
+#	$NetBSD: daily,v 1.68.2.1 2006/12/30 05:28:18 riz Exp $
 #	@(#)daily	8.2 (Berkeley) 1/25/94
 #
 
@@ -268,7 +268,7 @@
 fi
 
 if [ -f /etc/daily.local ]; then
-	. /etc/daily.local > $TMP 2>&1
+	( . /etc/daily.local ) > $TMP 2>&1
 	if [ -s $TMP ] ; then
 		printf "\nRunning /etc/daily.local:\n"
 		cat $TMP