https://bugzilla.novell.com/show_bug.cgi?id=470511 Summary: boot.cleanup deletes entire directory Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: Other OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: volker3204@paradise.net.nz QAContact: qa@suse.de Found By: --- This code in /etc/init.d/boot.cleanup for CURDIR in $CLEAR_DIRS ; do find $CURDIR -maxdepth 1 -exec rm -rf {} + could be simplified to rm -rf $CLEAR_DIRS i.e. it deletes the whole directory, not just its contents. Fix: --- /etc/init.d/orig/boot.cleanup 2008-11-17 14:55:31.000000000 +1300 +++ /etc/init.d/boot.cleanup 2009-01-29 20:21:35.000000000 +1300 @@ -76,7 +76,7 @@ if test "$CLEAR_TMP_DIRS_AT_BOOTUP" = yes; then echo -n "Cleaning temporary directories $CLEAR_DIRS" for CURDIR in $CLEAR_DIRS ; do - find $CURDIR -maxdepth 1 -exec rm -rf {} + + find $CURDIR -mindepth 1 -maxdepth 1 -exec rm -rf {} + done rc_status -v -r fi -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.