🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #1325

exect() is bogus

#1325
From: Chris Torek
Date: Wed, 18 Jan 1989 06:29
20 lines
938 bytes
Index: bin/adb/adb.vax/runpcs.c 4.3BSD-tahoe Fix

Description:
	The exect() `system call', which adb uses to start binaries
	on the VAX, is unnecessary and leads to incorrect behaviour
	if the exec() fails.

Repeat-by:
	% adb no-such-file
	cannot open `no-such-file'
	:s
	stopped at     <addr>:    jmp     <other-addr>

Fix:
	After ptrace(PT_TRACE_ME), a simple execve() suffices.  Change
	the one occurrence in adb, and any others you find anywhere
	else.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris@mimsy.umd.edu	Path:	uunet!mimsy!chris
Technical Details
Message-ID: <15506@mimsy.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!haven!mimsy!chris

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!haven!mimsy!chris
From: chris@mimsy.UUCP (Chris Torek)
Newsgroups: comp.bugs.4bsd
Subject: exect() is bogus
Message-ID: <15506@mimsy.UUCP>
Date: 18 Jan 89 06:29:44 GMT
Reply-To: chris@mimsy.umd.edu (Chris Torek)
Organization: University of Maryland, Dept. of Computer Sci.
Lines: 20