Commit 409b8 introduced a regression when the --disable-tirpc
configuration flag is set. The authsys_create() interface, which
was introduced, does not exist in the legacy glibc library.
Since the authsys_create() interface is a redefined of the
authunix_create() interface, which is defined in glibc, using
authunix_create() resolves the regression,
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
if (gethostname(machname, sizeof(machname)) == -1)
return NULL;
- return authsys_create(machname, uid, gid, 1, &gid);
+ return authunix_create(machname, uid, gid, 1, &gid);
}