#1976: System.Posix.User.getUserEntryForName: incorrect error for non-existent
user
-------------------------------+--------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: libraries/unix | Version: 6.8.1
Severity: normal | Keywords:
Difficulty: Easy (1 hr) | Testcase:
Architecture: x86_64 (amd64) | Os: Linux
-------------------------------+--------------------------------------------
I just noticed that getUserEntryForName suffers from the same problem I
reported earlier (#1655) for getGroupEntryForName. That is, the following
program:
{{{
import System.Posix.User
main :: IO ()
main = getUserEntryForName "bla" >> return ()
}}}
gives the following output (on a system without a "bla" user):
{{{
a.out: getUserEntryForName: failed (Success)
}}}
The "(Success)" part is obviously wrong.
PS. I'm using 6.8.2, not 6.8.1, but 6.8.2 is not yet an option in the
Version drop-down box.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1976>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs