From: Steve Dickson Date: Mon, 8 Mar 2010 15:24:44 +0000 (-0500) Subject: Use authunix_create() instead of authsys_create() to fix regression. X-Git-Tag: nfs-utils-1-2-3-rc1~10 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=84346b7d7e69c113d6dbf03f2646a47b0e74a6b8;p=nfs-utils.git Use authunix_create() instead of authsys_create() to fix regression. 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 Signed-off-by: Steve Dickson --- diff --git a/support/nfs/rpc_socket.c b/support/nfs/rpc_socket.c index aa6a205..c14efe8 100644 --- a/support/nfs/rpc_socket.c +++ b/support/nfs/rpc_socket.c @@ -576,5 +576,5 @@ nfs_authsys_create(void) if (gethostname(machname, sizeof(machname)) == -1) return NULL; - return authsys_create(machname, uid, gid, 1, &gid); + return authunix_create(machname, uid, gid, 1, &gid); }