Bug#350218: [Pkg-sysvinit-devel] Bug#350218: initscripts: Bootclean doesn't clean all nested directories in /tmp
On 2006-01-29 16:00:38 +0100, Thomas Hood wrote: Piotr Kaczuba wrote: It's the change from find's exec to piping the stdout to xargs that broke it. OK, fixed in svn. Thanks for tracking down the bug. Could you post a URL to that svn repository? (I can't find it) There seems to be another bug that I found: Folders that contain () aren't removed by the current script in unstable. Maybe the new script fixes it but I can't test the new one since I can't find it. I also don't understand why that change to the code was done. I took a look at the Debian changelog but the comment: * bootclean: Adapt from old bootclean.sh; handle return status more carefully; print diagnostic messages on failures; eliminate use of subshells; add comments; improve deletion code didn't help me much. You should explain what bug was fixed. (I think you mean speed improvement, but I'm not sure) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#350218: [Pkg-sysvinit-devel] Bug#350218: initscripts: Bootclean doesn't clean all nested directories in /tmp
On Sat, Jan 28, 2006 at 06:31:24PM +0100, Thomas Hood wrote: Piotr Kaczuba wrote: When cleaning /tmp, bootclean doesn't remove all directories. Thanks for the report. Is this a new bug introduced in 2.86.ds1-11 or was the bug already present in, e.g., 2.86.ds1-4 ? The bug was introduced in 2.86.ds1-10, 2.86.ds1-4 was ok. The culprit is the following line in bootclean: find . -depth -xdev $DEXPR $EXCEPT -type d -empty \ -print0 | xargs -0r rmdir --ignore-fail-on-non-empty --\ || { report_err ; return 1 ; } In 2.86.ds1-4 it read: find . -depth -xdev $DEXPR $EXCEPT \ -type d -empty -exec rmdir \{\} \; It's the change from find's exec to piping the stdout to xargs that broke it. Piotr -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#350218: initscripts: Bootclean doesn't clean all nested directories in /tmp
Package: initscripts Version: 2.86.ds1-11 Severity: normal When cleaning /tmp, bootclean doesn't remove all directories. The problem seems to be, that find lists first a parent directory and then the directories beneath. Removing the parent directory fails silently, because it's not empty. Thus, after having run, bootclean leaves some empty directories. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.15.1-orbiter.x86-64.2 Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) Versions of packages initscripts depends on: ii debianutils 2.15.2 Miscellaneous utilities specific t ii e2fsprogs 1.38+1.39-WIP-2005.12.31-1 ext2 file system utilities and lib ii libc6 2.3.5-12 GNU C Library: Shared libraries an ii lsb-base 3.0-14 Linux Standard Base 3.0 init scrip ii mount 2.12r-5Tools for mounting and manipulatin initscripts recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]