Re: oddness from getgrnam()

1999-04-17 Thread Miquel van Smoorenburg
In article <[EMAIL PROTECTED]>, Shaleh <[EMAIL PROTECTED]> wrote: >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" > The manual page for

Re: oddness from getgrnam()

1999-04-16 Thread E.L. Meijer \(Eric\)
> > 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. I think the error is

oddness from getgrnam()

1999-04-16 Thread Shaleh
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, b