From db0980ffa314f45ce9cdee212ea1642f1f0e4b7f Mon Sep 17 00:00:00 2001 From: Mathieu Date: Fri, 16 Apr 2004 09:08:03 +0000 Subject: [PATCH] Mathieu Doidy / Clifford Wolf: sysfiles/system.init: better cleaning of temporary files (especially in the case of filenames with spaces in it) [ https://www.rocklinux.net/submaster/smadm.cgi?i=2004040814044222495 ] git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2754 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/base/sysfiles/system.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base/sysfiles/system.init b/package/base/sysfiles/system.init index 9a15838d5..ce0a46be5 100644 --- a/package/base/sysfiles/system.init +++ b/package/base/sysfiles/system.init @@ -104,7 +104,7 @@ dnl check(`hostname "$(cat /etc/HOSTNAME)"') dnl block_split(`Refresh utmp, delete lock and tmp files and other stuff.') - find /var/lock /var/run /tmp -mindepth 1 2> /dev/null | xargs rm -rf + find /var/lock /var/run /tmp -mindepth 1 -print0 2> /dev/null | xargs --null rm -rf rm -f /etc/nologin /nologin /fastboot ; touch /var/run/utmp chmod 664 /var/run/utmp ; chown root:tty /var/run/utmp dnl