netstat / YP incompatibility
jbn at wdl1.UUCP
jbn at wdl1.UUCP
Sat Nov 16 12:21:52 AEST 1985
Index: ucb/netstat/*.c 4.2BSD
Description:
When compiled with SUN yellow pages code present, dumps core.
Cause:
Use of word "socket" as a variable name ("struct socket socket")
clashes with use of word "socket" as name of a system call,
causing call to "socket" inside yellow pages library to transfer
control to a data object, generally resulting in nonproductive
program behavior.
Fix:
Find all occurences of the variable "socket" and change them to
something else, such as "wsocket".
John Nagle
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list