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).
This commit is contained in:
Ed Maste 2019-03-26 19:38:25 +00:00
parent ed5e102abb
commit 98b1cf29cf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=345553

View File

@ -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);
}