Make the daily script immune to changes of the current working directory trunk
authorhubertf <hubertf@NetBSD.org>
Sun, 17 Dec 2006 23:24:09 +0000
branchtrunk
changeset 154450 cb95f40e685a
parent 154449 78035dfd5130
child 154451 eedb90ae8038
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	Sun Dec 17 23:08:12 2006 +0000
+++ b/etc/daily	Sun Dec 17 23:24:09 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.69 2006/12/17 23:24:09 hubertf 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