System.Posix.User.getUserEntryForName: incorrect error for non-existent user
I just noticed that getUserEntryForName suffers from the same problem I reported earlier (#1655 (closed)) 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.
Trac metadata
Trac field | Value |
---|---|
Version | 6.8.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | libraries/unix |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |