Bug#350218: [Pkg-sysvinit-devel] Bug#350218: initscripts: Bootclean doesn't clean all nested directories in /tmp

Piotr Kaczuba pepe at attika.ath.cx
Sat Jan 28 17:51:28 UTC 2006


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




More information about the Pkg-sysvinit-devel mailing list