cvs commit: src/usr.bin/su su.c

Brian Somers brian at FreeBSD.org
Mon Jan 2 04:28:01 PST 2006


On Mon, 2 Jan 2006 13:52:58 +0300 Andrey Chernov <ache at FreeBSD.ORG> wrote:
> On Mon, Jan 02, 2006 at 09:46:39AM +0000, Brian Somers wrote:
> >     usr.bin/su           su.c 
> >   Log:
> >   Handle the case (that I just broke) where the following hangs:
> >   
> >       $ su
> >       # kill -STOP $$
> 
> You broke not only that.
> "stop $$/fg" for tcsh is broken now too (cause logout for ssh).
> (BTW, this test is from commit logs)
> 
> -- 
> http://ache.pp.ru/
> 

I've looked into this a little... csh blows up quite impressively
here were (a)sh, bash and zsh work properly.  My guess is that the
bug is in tcsh and the code removed from su was just wrong anyway.

I'll look into this further tomorrow (it's getting late here now)
and I need to be up early in the morning.  Hopefully I'll come up
with something useful soon.

-- 
Brian Somers                                          <brian at Awfulhak.org>
Don't _EVER_ lose your sense of humour !               <brian at FreeBSD.org>


More information about the cvs-src mailing list