pfalstad@phoenix.princeton.edu (Paul John Falstad) (11/27/90)
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@phoenix.princeton.edu PLink:HYPNOS GEnie:P.FALSTAD