mirror of https://github.com/mirror/busybox.git
libbb: make spawn() print "can't execute '%s'" on execv error
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>1_16_stable
parent
219757fee9
commit
3f11f35124
|
@ -41,6 +41,7 @@ pid_t FAST_FUNC spawn(char **argv)
|
|||
* (but don't run atexit() stuff, which would screw up parent.)
|
||||
*/
|
||||
failed = errno;
|
||||
bb_perror_msg("can't execute '%s'", argv[0]);
|
||||
_exit(111);
|
||||
}
|
||||
/* parent */
|
||||
|
|
Loading…
Reference in New Issue