libbb: make spawn() print "can't execute '%s'" on execv error
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 8 Oct 2009 21:28:29 +0000 (23:28 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 8 Oct 2009 21:28:29 +0000 (23:28 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/vfork_daemon_rexec.c

index 2e48e40..1dbeff8 100644 (file)
@@ -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 */