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