* src/chroot.c (main): ...it's more precise.
* src/nohup.c (main): Likewise.
* src/setuidgid.c (main): Likewise.
* src/timeout.c (main): Likewise.
{
int exit_status = (errno == ENOENT ? EXIT_ENOENT : EXIT_CANNOT_INVOKE);
- error (0, errno, _("cannot run command %s"), quote (argv[0]));
+ error (0, errno, _("failed to run command %s"), quote (argv[0]));
exit (exit_status);
}
}
In other words, output the diagnostic if possible, but only if
it will go to the original stderr. */
if (dup2 (saved_stderr_fd, STDERR_FILENO) == STDERR_FILENO)
- error (0, saved_errno, _("cannot run command %s"), quote (*cmd));
+ error (0, saved_errno, _("failed to run command %s"), quote (*cmd));
exit (exit_status);
}
execvp (*cmd, cmd);
exit_status = (errno == ENOENT ? EXIT_ENOENT : EXIT_CANNOT_INVOKE);
- error (0, errno, _("cannot run command %s"), quote (*cmd));
+ error (0, errno, _("failed to run command %s"), quote (*cmd));
exit (exit_status);
}
}
/* exit like sh, env, nohup, ... */
exit_status = (errno == ENOENT ? EXIT_ENOENT : EXIT_CANNOT_INVOKE);
- error (0, errno, _("cannot run command %s"), quote (argv[0]));
+ error (0, errno, _("failed to run command %s"), quote (argv[0]));
return exit_status;
}
else