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:
parent
d9d47c3078
commit
ad082987d0
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user