Use %m, not strerror, and strerror(err) was broken anyways and should have been

strerror(errno).  Problem noted by Alexey V. Neyman <alex.neyman@auriga.ru>
This commit is contained in:
Eric Andersen 2002-09-30 20:20:20 +00:00
parent d9d47c3078
commit ad082987d0

View File

@ -1261,7 +1261,7 @@ static int pseudo_exec(struct child_prog *child)
/* Do not use perror_msg_and_die() here, since we must not /* Do not use perror_msg_and_die() here, since we must not
* call exit() but should call _exit() instead */ * call exit() but should call _exit() instead */
fprintf(stderr, "%s: %s\n", child->argv[0], strerror(err)); fprintf(stderr, "%s: %m\n", child->argv[0]);
_exit(EXIT_FAILURE); _exit(EXIT_FAILURE);
} }