id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,os,architecture,failure,difficulty,testcase,blockedby,blocking,related
1655,System.Posix.User.getGroupEntryForName incorrect error for non-existent group,Eelis,igloo,"The following program:
{{{
  import System.Posix.User
  main :: IO ()
  main = getGroupEntryForName ""monkeys"" >> return ()
}}}
gives the following output (on a system without a ""monkeys"" group):
{{{
  *** Exception: getGroupEntryForName: failed (Success)
}}}
The ""(Success)"" part is obviously wrong.

The problem is that the getGroupEntryForName implementation throws errno if getgrnam_r wrote NULL to the pointer pointed to by its last parameter, while the [http://www.opengroup.org/onlinepubs/009695399/functions/getgrnam.html getgrnam_r specification] makes no guarantees about errno being set in that case.",bug,closed,normal,6.8.2,libraries/unix,6.6.1,fixed,,,Linux,x86_64 (amd64),,Easy (less than 1 hour),getGroupEntryForName,,,
