Article View: comp.bugs.2bsd
Article #197Re: tip bug fix
From: Ian Donaldson
Date: Sun, 08 May 1988 07:34
Date: Sun, 08 May 1988 07:34
21 lines
960 bytes
960 bytes
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
Technical Details
Message-ID:
<759@yabbie.rmit.oz>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!munnari!moncskermit!goanna!yabbie!rcodiReferences:
<1160@cadre.dsl.PITTSBURGH.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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