home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!elroy.jpl.nasa.gov!usc!zaphod.mps.ohio-state.edu!ub!galileo.cc.rochester.edu!uhura.cc.rochester.edu!ctne_ltd
- From: ctne_ltd@uhura.cc.rochester.edu (Chris Newbold)
- Newsgroups: comp.os.linux
- Subject: Fix for getty/uugetty under pl5
- Message-ID: <1992Nov18.011322.9917@galileo.cc.rochester.edu>
- Date: 18 Nov 92 01:13:22 GMT
- Sender: news@galileo.cc.rochester.edu
- Organization: University of Rochester - Rochester, New York
- Lines: 37
- Nntp-Posting-Host: uhura.cc.rochester.edu
-
- I've found the problem with the getty/uugetty from getty_ps203.
-
- The culprit is the code which attempts to add an entry into utmp
- for uugetty. Notice that the ifdef explicitly excludes the code
- which initializes utmp; the subsequent strncopys try to copy
- stuff to a NULL structure:
-
- From main.c:585:
-
- #ifndef linux
- while ((utmp = getutent()) != (struct utmp *) NULL)
- if (utmp->ut_type == INIT_PROCESS && utmp->ut_pid == pid)
- #endif
- {
- debug2(D_UTMP, "logutmp entry made\n");
- /* show login process in utmp
- */
- strncopy(utmp->ut_line, Device);
- strncopy(utmp->ut_id, Device+3);
-
- ...
-
- I don't know enough about this to say what the real fix is (maybe
- it should be "#ifdef", I dunno. Perhaps the person who did the
- original port can comment.
-
- For now, just edit tune.h and #undef LOGUTMP, so it doesn't try
- to change the log file. I perfer it this way myself, so that all
- the logins don't appear in a 'w' listing.
-
- -Chris
-
- --
- >>>> Chris Newbold <<<< * "If you fool around with a thing for very long you *
- University of Rochester * will screw it up." *
- Disclaimer: "All warranties expire upon payment of invoice."
- ctne_ltd@uhura.cc.rochester.edu * uhura.cc.rochester.edu!ctne_ltd@uunet
-