diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-01-30 06:28:49 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-01-30 14:26:31 +0100 |
commit | d7536874b85c33b770a0b249bcbeb499cd631d75 (patch) | |
tree | e2f0626d1a894f6ab81ea96d48b30e19543824f8 /nss/tst-nss-getpwent.c | |
parent | 9a1b267d470827ced2c81f6e711b5d5582a91a4d (diff) | |
download | glibc-d7536874b85c33b770a0b249bcbeb499cd631d75.zip glibc-d7536874b85c33b770a0b249bcbeb499cd631d75.tar.gz glibc-d7536874b85c33b770a0b249bcbeb499cd631d75.tar.bz2 |
nss: Adjust tests to use nss_files only
Diffstat (limited to 'nss/tst-nss-getpwent.c')
-rw-r--r-- | nss/tst-nss-getpwent.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nss/tst-nss-getpwent.c b/nss/tst-nss-getpwent.c index cdaef76..ff9c3d0 100644 --- a/nss/tst-nss-getpwent.c +++ b/nss/tst-nss-getpwent.c @@ -15,6 +15,7 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ +#include <nss.h> #include <pwd.h> #include <stdbool.h> #include <stdio.h> @@ -26,6 +27,8 @@ int do_test (void) { + __nss_configure_lookup ("passwd", "files"); + /* Count the number of entries in the password database, and fetch data from the first and last entries. */ size_t count = 0; |