From: Denys Vlasenko Date: Thu, 8 Oct 2009 21:28:29 +0000 (+0200) Subject: libbb: make spawn() print "can't execute '%s'" on execv error X-Git-Tag: 1_16_0~411 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3f11f35124f3b2deca1a403520260f290b6f8901;p=oweals%2Fbusybox.git libbb: make spawn() print "can't execute '%s'" on execv error Signed-off-by: Denys Vlasenko --- diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c index 2e48e40a9..1dbeff8af 100644 --- a/libbb/vfork_daemon_rexec.c +++ b/libbb/vfork_daemon_rexec.c @@ -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 */