mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 19:22:47 +00:00
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).
This commit is contained in:
parent
b86a198fed
commit
adbb08d43b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=312320
@ -50,5 +50,5 @@ main(int argc, char **argv)
|
||||
}
|
||||
|
||||
execve(argv[1], &argv[1], NULL);
|
||||
err(1, "");
|
||||
err(1, "execve failed");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user