Date: Tue, 17 Jan 2017 01:55:14 +0000 (UTC) From: Ngie Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r312321 - stable/11/tests/sys/kern/execve Message-ID: <201701170155.v0H1tEhb074943@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Tue Jan 17 01:55:14 2017 New Revision: 312321 URL: https://svnweb.freebsd.org/changeset/base/312321 Log: 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). Modified: stable/11/tests/sys/kern/execve/execve_helper.c Directory Properties: stable/11/ (props changed) Modified: stable/11/tests/sys/kern/execve/execve_helper.c ============================================================================== --- stable/11/tests/sys/kern/execve/execve_helper.c Tue Jan 17 01:55:05 2017 (r312320) +++ stable/11/tests/sys/kern/execve/execve_helper.c Tue Jan 17 01:55:14 2017 (r312321) @@ -50,5 +50,5 @@ main(int argc, char **argv) } execve(argv[1], &argv[1], NULL); - err(1, ""); + err(1, "execve failed"); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701170155.v0H1tEhb074943>