home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / xenix / sco / 3747 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.7 KB  |  42 lines

  1. Newsgroups: comp.unix.xenix.sco
  2. Path: sparky!uunet!ukma!asuvax!cs.utexas.edu!torn!newshub.ccs.yorku.ca!newshub.ariel.yorku.ca!cs911077
  3. From: cs911077@ariel.yorku.ca (Iain Calder)
  4. Subject: Q: wtmp file format
  5. Message-ID: <1993Jan28.193336.15488@newshub.ariel.yorku.ca>
  6. Summary: Is the login-name field 8 or 7-character?
  7. Sender: news@newshub.ariel.yorku.ca (USENET News System)
  8. Organization: York University, Toronto, Canada
  9. Distribution: na
  10. Date: Thu, 28 Jan 1993 19:33:36 GMT
  11. Lines: 29
  12.  
  13. [ The first posting apparently >/dev/null.
  14.   Apologies if you've seen this twice. ]
  15.  
  16. Well, I looked and looked and looked in the manual and found nothing
  17. so I turn to the net were the wise people live :-).
  18.  
  19. /etc/wtmp is a log of logins. For each login, it reserves 8 bytes
  20. to store the login-name. The login-name is padded on the right with
  21. NULs to fill the 8 bytes.
  22.  
  23. But this field could also be seen as *7* bytes for the name followed
  24. by a NUL, thus being a NUL-terminated string.
  25.  
  26. Which of the two is it?
  27.  
  28. For one thing, in xenix 2.3.1, `last username' doesn't work for
  29. 8-character names: it searches until it reaches the end of the file
  30. but doesn't report the searched-for 8-character name. On the other hand,
  31. `last' without parameters correctly reports *all* logins including
  32. 8-character ones. I wonder if this is a bug which was later fixed or
  33. if wtmp is designed for 7-byte names max.
  34.  
  35. Please e-mail; I'll summarise.
  36. --
  37. Location: Toronto, Ontario, Canada        Name: Iain Calder
  38. internet: cs911077@ariel.yorku.ca   Messalina Public Access Xenix:
  39.  fidonet: Iain Calder @ 1:250/318    +1 416 398 9526 (2400bps 8N1)
  40.   bitnet: yusol::cs101204                 type `newuser'
  41.     uucp: ...!mail.uunet.ca!r-node.gts.org!messalina!{iain,root} 
  42.