Path: utzoo!mnetor!uunet!munnari!moncskermit!goanna!yabbie!rcodi From: rcodi@yabbie.rmit.oz (Ian Donaldson) Newsgroups: comp.bugs.2bsd Subject: Re: tip bug fix Message-ID: <759@yabbie.rmit.oz> Date: 8 May 88 07:34:59 GMT References: <1160@cadre.dsl.PITTSBURGH.EDU> Organization: RMIT Comm & Elec Eng, Melbourne, Australia. Lines: 21 From article <1160@cadre.dsl.PITTSBURGH.EDU>, by jack@cadre.dsl.PITTSBURGH.EDU (Jack Nelson): > Index: /usr/src/usr.bin/tip/cmds.c 2.10BSD > > Description: > tip(1) will not properly run a shell if the environment > SHELL is /bin/csh or /bin/tcsh. ... > Fix: > Description of how to fix the problem: > patch cmds.c to use the "-b" option as documented in csh(1) to > be necessary when you run setuid and try to fork a csh. No! That is definitely NOT the fix. You should instead do a: setuid(getuid()); setgid(getgid()); before you exec the shell!! (same bug in 4.3bsd tip) Ian D