>>  #include <unistd.h>
>>  #include <sys/types.h>
>>  #include <stdio.h>

Isn't #include <pwd.h> missing here?

Also check errno like Martin suggests. For this you need #include <errno.h> and
make sure you set errno=0 before you call getpwuid.

Cheers, Mark.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to