[git commit master] libbb: make spawn() print "can't execute '%s'" on execv error

Denys Vlasenko vda.linux at googlemail.com
Thu Oct 8 21:28:29 UTC 2009


commit: http://git.busybox.net/busybox/commit/?id=3f11f35124f3b2deca1a403520260f290b6f8901
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 libbb/vfork_daemon_rexec.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c
index 2e48e40..1dbeff8 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 */
-- 
1.6.3.3



More information about the busybox-cvs mailing list