SVN: rc-scripts/trunk/rc.d/rc.sysinit
    glen 
    glen at pld-linux.org
       
    Thu Mar 29 09:04:31 CEST 2012
    
    
  
Author: glen
Date: Thu Mar 29 09:04:31 2012
New Revision: 12523
Modified:
   rc-scripts/trunk/rc.d/rc.sysinit
Log:
clean /tmp if it is not on tmpfs
Modified: rc-scripts/trunk/rc.d/rc.sysinit
==============================================================================
--- rc-scripts/trunk/rc.d/rc.sysinit	(original)
+++ rc-scripts/trunk/rc.d/rc.sysinit	Thu Mar 29 09:04:31 2012
@@ -969,9 +969,8 @@
 fi
 
 # Clean /tmp
-if is_yes "$CLEAN_TMP"; then
-	# XXX LC_ALL needed here
-	rm -rf /tmp/* /tmp/.[a-zA-Z0-9]*
+if is_yes "$CLEAN_TMP" && ! is_fsmounted tmpfs /tmp; then
+	LC_ALL=C rm -rf /tmp/* /tmp/.[a-zA-Z0-9]*
 fi
 
 # System protected dirs
    
    
More information about the pld-cvs-commit
mailing list