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 2e48e40a93831a311096c10d1a6598dd6145ae0f..1dbeff8af77c24762a1bb013fb06130edcaf69d1 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 */