Skip to content

Define NSS_BUFLEN_PASSWD as 1024 if it's undefined

Compilation on FreeBSD fails with following error:

../../lib/util/util_paths.c:71:11: error: use of undeclared identifier 'NSS_BUFLEN_PASSWD' char buf[NSS_BUFLEN_PASSWD] = {0}; ^ ../../lib/util/util_paths.c:74:39: error: use of undeclared identifier 'NSS_BUFLEN_PASSWD' rc = getpwuid_r(getuid(), &pwd, buf, NSS_BUFLEN_PASSWD, &pwdbuf); ^ 2 errors generated.

Regression caused by commit: 452e543c

Bugzilla number: 14415

Merge request reports