exect() is bogus
Chris Torek
chris at mimsy.UUCP
Wed Jan 18 16:29:44 AEST 1989
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 at mimsy.umd.edu Path: uunet!mimsy!chris
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list