From 8022fc7d5119a22e9e0ac72798f649385b0e167a Mon Sep 17 00:00:00 2001 From: Frédéric Bérat Date: Wed, 14 Jun 2023 10:52:07 +0200 Subject: tests: replace system by xsystem With fortification enabled, system calls return result needs to be checked, has it gets the __wur macro enabled. Reviewed-by: Siddhesh Poyarekar --- nss/tst-nss-db-endpwent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nss') diff --git a/nss/tst-nss-db-endpwent.c b/nss/tst-nss-db-endpwent.c index 2b0fc1b064..4dba3fada6 100644 --- a/nss/tst-nss-db-endpwent.c +++ b/nss/tst-nss-db-endpwent.c @@ -23,6 +23,7 @@ #include #include +#include /* It is entirely allowed to start with a getpwent call without resetting the state of the service via a call to setpwent. @@ -55,7 +56,7 @@ do_test (void) cmd = xasprintf ("%s/makedb -o /var/db/passwd.db /var/db/passwd.in", support_bindir_prefix); - system (cmd); + xsystem (cmd); free (cmd); try_it (); -- cgit 1.4.1