Date: Tue, 26 Mar 2019 19:38:25 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r345553 - head/sbin/init Message-ID: <201903261938.x2QJcPLG022061@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Tue Mar 26 19:38:25 2019 New Revision: 345553 URL: https://svnweb.freebsd.org/changeset/base/345553 Log: init: pedantic correction to "can't exec" script warning Direct /etc/rc exec was introduced in r337321, with a fallback to passing it to sh if direct exec fails. "Can't exec" is slightly misleading in this case (the script is still executed, just not directly). Modified: head/sbin/init/init.c Modified: head/sbin/init/init.c ============================================================================== --- head/sbin/init/init.c Tue Mar 26 19:35:41 2019 (r345552) +++ head/sbin/init/init.c Tue Mar 26 19:38:25 2019 (r345553) @@ -1083,7 +1083,7 @@ execute_script(char *argv[]) error = access(script, X_OK); if (error == 0) { execv(script, argv + 1); - warning("can't exec %s: %m", script); + warning("can't directly exec %s: %m", script); } else if (errno != EACCES) { warning("can't access %s: %m", script); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903261938.x2QJcPLG022061>