SVN: rc-scripts/trunk/rc.d/init.d/functions

glen glen at pld-linux.org
Wed Nov 1 23:54:00 CET 2006


Author: glen
Date: Wed Nov  1 23:53:59 2006
New Revision: 7938

Modified:
   rc-scripts/trunk/rc.d/init.d/functions
Log:
Ignore errors if msg cachefile can not be written (functions sourced by non-root user of readonly filesystem).

Modified: rc-scripts/trunk/rc.d/init.d/functions
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/functions	(original)
+++ rc-scripts/trunk/rc.d/init.d/functions	Wed Nov  1 23:53:59 2006
@@ -920,7 +920,7 @@
 	_died=$(progress "DIED" "$CFAIL")
 
 	# we don't use heredoc, as ksh attempts to create tempfile then
-	> "$cachefile" || return
+	(> "$cachefile" ) 2>/dev/null || return
 	echo "_busy='$_busy';" >> "$cachefile"
 	echo "_ok='$_ok';" >> "$cachefile"
 	echo "_started='$_started';" >> "$cachefile"


More information about the pld-cvs-commit mailing list