Merge pull request #243 from Daniel-Abrecht/master
The check for getpwnam wrongly succeeded on some systemslibnfs-4.0.0-vitalif
commit
61584229d5
|
@ -82,7 +82,10 @@ else
|
|||
fi
|
||||
|
||||
AC_MSG_CHECKING(whether getpwnam() is available)
|
||||
AC_TRY_COMPILE([#include <sys/types.h>, #include <pwd.h>], [
|
||||
AC_TRY_COMPILE([
|
||||
#include <sys/types.h>
|
||||
#include <pwd.h>
|
||||
], [
|
||||
struct passwd *pwd = getpwnam("nobody");
|
||||
], ac_cv_have_getpwnam=yes, ac_cv_have_getpwnam=no)
|
||||
if test "$ac_cv_have_getpwnam" = yes ; then
|
||||
|
|
|
@ -423,6 +423,8 @@ nfs_get_ugid(struct nfs_context *nfs, const char *buf, int slen, int is_user)
|
|||
return pwd->pw_gid;
|
||||
}
|
||||
}
|
||||
#else
|
||||
(void) name; // Let the compiler know that this variable is intentionally unused, build would fail with -Werror=unused-variable otherwise
|
||||
#endif
|
||||
return 65534;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue