Subject: Re: misc/7716: /etc/daily modify
To: None <cgd@netbsd.org>
From: Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
List: netbsd-bugs
Date: 06/06/1999 12:14:28
In message <87bteugj6y.fsf@redmail.redback.com>
	on 05 Jun 1999 19:24:21 -0700,
	cgd@netbsd.org (Chris G. Demetriou) wrote:
> seirios@matrix.iri.co.jp writes:
> > 	attach temporaly patch.
> > 	But I think this is not solv this probrem.
> > [ ... ]
> > +		-o -fstype kernfs -o -fstype procfs -o union -o null \) \
> > +		-a -prune -o -name 'lost+found' -a -prune -o \
> 
> uh, you're missing a couple of -fstype checks there, so this patch
> will not function properly.
How about generating directories for find from fstab and use -xdev
option?

find `awk '$3 == "ffs" && $4 == "rw" {print $2}'` -xdev \
	-name 'lost+found' -a -prune -o \
	\( -name '*.core' -o -name 'core' \) -a -print > $TMP

Of course, above awk script part isn't complete but basic idea is here.

Cheers.

--
Takahiro Kambe <taca@sky.yamashina.kyoto.jp>