This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.26.9000-1246-gd753687
- From: fw at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 30 Jan 2018 13:27:00 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.26.9000-1246-gd753687
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via d7536874b85c33b770a0b249bcbeb499cd631d75 (commit)
from 9a1b267d470827ced2c81f6e711b5d5582a91a4d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=d7536874b85c33b770a0b249bcbeb499cd631d75
commit d7536874b85c33b770a0b249bcbeb499cd631d75
Author: Florian Weimer <fweimer@redhat.com>
Date: Tue Jan 30 06:28:49 2018 +0100
nss: Adjust tests to use nss_files only
diff --git a/ChangeLog b/ChangeLog
index d1a3804..7772fd3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-01-30 Florian Weimer <fweimer@redhat.com>
+
+ * nss/bug17079.c (do_test): Use nss_files only for reading passwd
+ data.
+ * nss/tst-nss-getpwent.c (do_test): Likewise.
+
2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
[BZ #10871]
diff --git a/nss/bug17079.c b/nss/bug17079.c
index f3e88b3..5f358f8 100644
--- a/nss/bug17079.c
+++ b/nss/bug17079.c
@@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */
#include <errno.h>
+#include <nss.h>
#include <pwd.h>
#include <stdbool.h>
#include <stdio.h>
@@ -213,6 +214,8 @@ test_buffer_size (size_t buffer_size)
int
do_test (void)
{
+ __nss_configure_lookup ("passwd", "files");
+
if (!init_test_items ())
return 1;
printf ("info: %d test items\n", test_count);
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;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
nss/bug17079.c | 3 +++
nss/tst-nss-getpwent.c | 3 +++
3 files changed, 12 insertions(+), 0 deletions(-)
hooks/post-receive
--
GNU C Library master sources