From 3f11f35124f3b2deca1a403520260f290b6f8901 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 8 Oct 2009 23:28:29 +0200 Subject: libbb: make spawn() print "can't execute '%s'" on execv error Signed-off-by: Denys Vlasenko --- libbb/vfork_daemon_rexec.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libbb/vfork_daemon_rexec.c') 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 */ -- cgit v1.2.3