diff options
author | ngie <ngie@FreeBSD.org> | 2017-01-17 01:55:14 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-01-17 01:55:14 +0000 |
commit | 79cfee91770feebfcdaa3f60978cc0a76a7e88d4 (patch) | |
tree | 204807a1cb0b8537e9911fc26360ddbd08575311 /tests | |
parent | 7241f52f9a17542d96727a46bf93db95ca732c4c (diff) | |
download | FreeBSD-src-79cfee91770feebfcdaa3f60978cc0a76a7e88d4.zip FreeBSD-src-79cfee91770feebfcdaa3f60978cc0a76a7e88d4.tar.gz |
MFC r312118,r312121:
r312118:
Fix -Wformat issue with zero-length format string passed to err(3)
Tested with: clang, gcc 4.2.1, gcc 4.9
r312121:
Follow up to r312118
State that execve failed instead of just printing out the program name
and strerror(errno) via err(3).
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sys/kern/execve/execve_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sys/kern/execve/execve_helper.c b/tests/sys/kern/execve/execve_helper.c index 164a8f3..989b3e4 100644 --- a/tests/sys/kern/execve/execve_helper.c +++ b/tests/sys/kern/execve/execve_helper.c @@ -50,5 +50,5 @@ main(int argc, char **argv) } execve(argv[1], &argv[1], NULL); - err(1, ""); + err(1, "execve failed"); } |