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"
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to