home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / aix / 8354 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.1 KB

  1. Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!hal.gnu.ai.mit.edu!mycroft
  2. From: mycroft@hal.gnu.ai.mit.edu (Charles Hannum)
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: ptys and getpwnam()
  5. Message-ID: <1992Jul30.232851.3401@mintaka.lcs.mit.edu>
  6. Date: 30 Jul 92 23:28:51 GMT
  7. References: <1992Jul30.141015.27287@news.ysu.edu>
  8. Sender: news@mintaka.lcs.mit.edu
  9. Organization: /etc/organization
  10. Lines: 21
  11.  
  12.  
  13. In article <1992Jul30.141015.27287@news.ysu.edu> doug@cc.ysu.edu (Doug
  14. Sewell) writes:
  15. >
  16. > I'm running aix 3.1.5, and am having strange problem with
  17. > pty-creating applications (script, screen, etc) - getpwnam() isn't
  18. > always returning the correct user entry.
  19.  
  20. You obviously didn't look at this very hard.
  21.  
  22. The problem you described has nothing to do with getpwnam(); it's a bug
  23. in getlogin().  getlogin() look at DEAD_PROCESS entries in utmp, when
  24. instead it should just be returning NULL.  This also happens under 3.2.
  25.  
  26. I've considered reporting this, but given the rather underwhelming
  27. support I've been receiving lately, I feel I would be wasting the
  28. effort.
  29.  
  30. -- 
  31. - Charles Hannum, mycroft@ai.mit.edu
  32.   White atheist male (WAM) pride!
  33.