Path: utzoo!attcan!uunet!nih-csl!lhc!ncifcrf!haven!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!wuarchive!cs.utexas.edu!sun-barr!ccut!titcca!uitecgw!nemossan From: nemossan@uitec.ac.jp (Sakurao NEMOTO) Newsgroups: comp.os.minix Subject: Re: utmp/wtmp-related patches (was: Re: Help with gettydefs...) Summary: Very minor problem of "last-command" in utmp/wtmp related patches Message-ID: <148@uitecgw.uitec.ac.jp> Date: 8 Nov 90 11:16:41 GMT References: <35537@nigel.ee.udel.edu> Organization: Univ. Industrial Tech., Sagamihara, JAPAN Lines: 49 Thank you very much "utmp/wtmp-related patches". I've tried several of them, and found curious phenomena on "last"-command. After I've issued "login" command while I'm logged-in, I'm still login (may be forever). This is the output of PH-minix-1.5-PC-version, ------------------------------------------------------------------------ $ /usr/bin/last nemossan tty0 Thu Nov 8 19:12 still logged in nemossan tty0 Thu Nov 8 19:10 - 19:12 (00:01) <-- here login'ed. nemossan tty0 Thu Nov 8 15:06 - 19:10 (04:04) nemossan tty0 Thu Nov 8 14:38 - 15:05 (00:26) reboot ~ Thu Nov 8 14:38 | | wtmp begins Wed Oct 31 23:20 ------------------------------------------------------------------------ And this is by new "last" command ------------------------------------------------------------------------ $ /usr/nemossan/bin/last nemossan tty0 Thu Nov 8 19:12 still logged in nemossan tty0 Thu Nov 8 19:10 - 19:12 (00:01) nemossan tty0 Thu Nov 8 15:06 still logged in ??? nemossan tty0 Thu Nov 8 14:38 - 15:05 (00:27) reboot ~ Thu Nov 8 14:38 | | wtmp begin Wed Oct 31 23:20 ------------------------------------------------------------------------ After 4 hours of logging, I've issued "login" command, with neither ^D nor exit-command. Here are directories of both last's. ------------------------------------------------------------------------ $ ls -l /usr/bin/last <--- PH-minix-1.5 total 12 -rwxr-xr-x 1 bin 11080 Oct 31 22:50 /usr/bin/last $ ls -l /usr/nemossan/bin/last <--- from <35537@nigel.ee.udel.edu> total 9 -rwxr-xr-x 1 nemossan 7860 Nov 8 16:06 /usr/nemossan/bin/last Nov 08 '90 (Thu) 20:04 JST(+9:00) nemossan@uitec.ac.jp