Re: read() on dirs - grep

From: Daniel Braniss <danny_at_cs.huji.ac.il>
Date: Tue, 10 Aug 2010 08:58:41 +0300
> 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
Received on Tue Aug 10 2010 - 04:40:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:05 UTC