Date: Tue, 10 Aug 2010 08:58:41 +0300 From: Daniel Braniss <danny@cs.huji.ac.il> To: Gabor Kovesdan <gabor@FreeBSD.org> Cc: Gennady Proskurin <gprspb@mail.ru>, freebsd-current@freebsd.org Subject: Re: read() on dirs - grep Message-ID: <E1OihrF-0007EF-Ei@kabab.cs.huji.ac.il> In-Reply-To: <4C60880F.4030308@FreeBSD.org> References: <20100809193420.GA11713@gpr.nnz-home.ru> <4C60880F.4030308@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> Em 2010.08.09. 21:34, Gennady Proskurin escreveu: > > I see misbehaviour of new bsd grep in freebsd on tmpfs when grepping dirs. > > For example (on tmpfs /tmp): > > > > mkdir /tmp/qwe > > grep something /tmp/qwe > > (grep hangs) > > > Thank you for the report, I'm already aware of the issue and preparing a > fix for it. > just in case this is the same but different :-) if grep hits an NFS mounted dir it goes into a loop: truss grep -l '^# PROVIDE:' /cs/share/etc/rc.d/* ... read(2,0x800c5e000,4096) ERR#21 'Is a directory' ... cheers, danny
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1OihrF-0007EF-Ei>