tags 318592 + confirmed patch
thanks

Here is a patch to re-order the find options to fix this bug:

--- /etc/init.d/bootclean.sh    2005-01-04 23:27:40.000000000 +0000
+++ /tmp/bootclean.sh   2005-07-17 20:14:51.988579544 +0100
@@ -53,14 +53,14 @@
                ! ( -path ./.clean -uid 0 )
                ! ( -path './...security*' -uid 0 )'
 
-       ( if cd /tmp && [ "`find . -perm -002 -maxdepth 0`" = "." ]
+       ( if cd /tmp && [ "`find . -maxdepth 0 -perm -002`" = "." ]
          then
                # First remove all old files.
-               find . -xdev $TEXPR $EXCEPT \
-                               ! -type d -depth -print0 | xargs -0r rm -f
+               find . -xdev -depth $TEXPR $EXCEPT \
+                               ! -type d -print0 | xargs -0r rm -f
                # And then all empty directories.
-               find . -xdev $DEXPR $EXCEPT \
-                               -type d -depth -empty -exec rmdir \{\} \;
+               find . -xdev -depth $DEXPR $EXCEPT \
+                               -type d -empty -exec rmdir \{\} \;
                rm -f .X*-lock
          fi
        )


Regards,
Roger


-- 
Roger Leigh
                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to