I was testing a program and to see how it handled an invalid group I did: gr = getgrnam("bob");
Now obviously this failed. However the string from perror() states: "Could not find file or directory" Why is this? Seems like a counter intuitive error. (Yes I know UNIX is sometimes like that, but this one is odd)