home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / mail / sendmail / 2187 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  1.1 KB

  1. Path: sparky!uunet!wupost!waikato.ac.nz!comp.vuw.ac.nz!cc-server4.massey.ac.nz!K.Spagnolo
  2. Newsgroups: comp.mail.sendmail
  3. Subject: Why are usernames downcased in finduser() ?
  4. Message-ID: <1992Sep2.055942.28839@massey.ac.nz>
  5. From: K.Spagnolo@massey.ac.nz (Ken Spagnolo)
  6. Date: Wed, 2 Sep 92 05:59:42 GMT
  7. Organization: Massey University Computing Services
  8. Lines: 17
  9.  
  10. The first thing finduser() does is map upper case to lower case for name.
  11. Then it does a getpwnam(name), and if that fails, goes into a bit of code
  12. that tries to discover something close to the origial, by doing getpwent()
  13. repeatedly and testing out the result in various ways.
  14.  
  15. Why on earth is name downcased first?  Its as though someone figured
  16. everyone who uses Unix also uses lowercase usercodes.  We happen to use
  17. mixed case, so the time to resolve a name is way too long.  Its been
  18. getting so that Eudora was timing out when trying to send to an alias
  19. containing what should be a reasonable number of entries.
  20.  
  21. Seem braindead to you?
  22.  
  23. Thanx,
  24. -- 
  25. Ken Spagnolo - Ph: +64-6-350-5160
  26. Systems Programmer, Network Support, Usenet Admin, etc.
  27.