On May 13, 2008, at 12:30 PM, Ruediger Pluem wrote:
On 05/13/2008 04:21 AM, [EMAIL PROTECTED] wrote:

-        gid = atoi(target_gname);
-        actual_gname = strdup(target_gname);
+        if ((gr = getgrgid(atoi(target_gname))) == NULL) {

Don't we need to check if getgrgid is available on the target platform?
As I see from my man page on Linux getgrgid requires <grp.h> which is
only included if we have HAVE_GRP_H set.

I guess we do need to check, since we already check for getgrname.
I thought both were ubiquitous.

Any idea of what alternatives are available per unix platform?

....Roy

Reply via email to