Bootscripts [HEAD]

Matthias Benkmann msbREMOVE-THIS at winterdrache.de
Wed Jun 30 06:35:50 PDT 2004


On Wed, 30 Jun 2004 07:05:43 -0400 Bryan Kadzban
<bryan at kadzban.is-a-geek.net> wrote:

> For each file and directory that it finds (unless the dir is named
> lost+found), it rm -rf's it.  That means that if your /tmp looks like
> this:
> 
> /tmp/
>    |
>    |-.X11-unix/
>    |   |
>    |   |-X0
>    |
>    |-temp-file
> 
> Then when find sees .X11-unix, it runs rm -rf on it.  But then find
> attempts to recurse into .X11-unix (since it's a recursive search for
> stuff), and fails because it just deleted the directory.
> 
> I *think* we could get rid of the message if we added a -maxdepth 1 to
> find's arguments.  


How about using -depth? 

MSB

-- 
Problems are always simple. It's the solutions that are difficult.




More information about the lfs-dev mailing list