tip shell escape (4.3BSD)

Chris Torek chris at umcp-cs.UUCP
Mon Sep 15 00:11:26 AEST 1986


In article <3000009 at inmet> nrh at inmet.UUCP writes:
>Subject: Re: Orphaned Response

Someone at inmet should look into installing the current version
of notesfiles, to help eliminate the `Orphaned Response' plague.

[changes to tip:]
>+ 		setuid(getuid());  /* Avoid "permission denied" problem */
>+ 		setgid(getgid());  /* ditto? */

If you intend to set both user and group IDs, you should do this in
the other order.  This is likely to work for tip (which is not setgid)
or under 4.2/4.3BSD (where setregid allows either egid or rgid to
be specified for both), but breaks on V7ish systems (including 4.1BSD).

As to the original bug, I have no idea what is wrong; we do not use
tip.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 1516)
UUCP:	seismo!umcp-cs!chris
CSNet:	chris at umcp-cs		ARPA:	chris at mimsy.umd.edu



More information about the Comp.bugs.4bsd.ucb-fixes mailing list