cvs commit: fptools/libraries/unix/System/Posix User.hsc

stolz at haskell.org stolz at haskell.org
Fri Nov 5 09:59:34 EST 2004


stolz       2004/11/05 06:59:34 PST

  Modified files:
    libraries/unix/System/Posix User.hsc 
  Log:
  Fix getpwnam_r-handling: getpwnam_r returns (always?) 0, you have
  to check result* (pppw[0])!
  
  Truss-log from querying first "root", then "" on SunOS 5.9:
  
  <- libc:__posix_getpwnam_r() = 0
  "root"
  -> libc:__posix_getpwnam_r(0xff1bf8a8, 0xff1bf460, 0xff1bf490, 0x400)
  <- libc:__posix_getpwnam_r() = 0
  
  Yes, that's 0 in both cases.  (I wasn't even able to elicit an ERANGE btw.)
  
  Reported by: Peter Simons
  
  Revision  Changes    Path
  1.10      +2 -0      fptools/libraries/unix/System/Posix/User.hsc


More information about the Cvs-libraries mailing list