Possible bug in 4.1 in.comsat
Paul John Falstad
pfalstad at phoenix.princeton.edu
Tue Nov 27 04:30:00 AEST 1990
Has anyone heard about a bug in in.comsat in SunOS 4.1? I'm not getting
biffed on my system. I took a look at the binaries, and figured out that
comsat calls getpwnam() with a userid it gets from the ut_name field in
utmp. Of course, ut_name is an 8 character buffer, so the string isn't
null terminated if the person's username is 8 characters (like mine is).
The name runs into the ut_host field, so the getpwnam fails, and comsat
segfaults. I checked this by exec'ing /bin/login (which clears the
ut_host field), and mailing myself some things. Biff worked fine then,
because ut_host is set to all nulls, which provides the null terminator
for the user name.
Anyone heard about this? Or is it a bug in my head?
Paul Falstad, pfalstad at phoenix.princeton.edu PLink:HYPNOS GEnie:P.FALSTAD
More information about the Comp.sys.sun
mailing list