diff options
author | Frédéric Bérat <fberat@redhat.com> | 2023-06-14 10:52:07 +0200 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2023-06-19 09:15:05 -0400 |
commit | 8022fc7d5119a22e9e0ac72798f649385b0e167a (patch) | |
tree | f2cdb5c88d14c05e96395f0cdc99a6692ec0f8da /nss | |
parent | 20b6b8e8a50874dd189687df8f6f8a11d4813b34 (diff) | |
download | glibc-8022fc7d5119a22e9e0ac72798f649385b0e167a.tar glibc-8022fc7d5119a22e9e0ac72798f649385b0e167a.tar.gz glibc-8022fc7d5119a22e9e0ac72798f649385b0e167a.tar.bz2 glibc-8022fc7d5119a22e9e0ac72798f649385b0e167a.zip |
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 <siddhesh@sourceware.org>
Diffstat (limited to 'nss')
-rw-r--r-- | nss/tst-nss-db-endpwent.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <support/support.h> #include <support/check.h> +#include <support/xstdlib.h> /* 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 (); |