diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-08 23:28:29 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-08 23:28:29 +0200 |
commit | 3f11f35124f3b2deca1a403520260f290b6f8901 (patch) | |
tree | 316517a6aa66f8f65ee3062161479dee9954b265 /libbb | |
parent | 219757fee9a1cacedaffcfe062254adb2ffe7cac (diff) | |
download | busybox-w32-3f11f35124f3b2deca1a403520260f290b6f8901.tar.gz busybox-w32-3f11f35124f3b2deca1a403520260f290b6f8901.tar.bz2 busybox-w32-3f11f35124f3b2deca1a403520260f290b6f8901.zip |
libbb: make spawn() print "can't execute '%s'" on execv error
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | 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 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) | |||
41 | * (but don't run atexit() stuff, which would screw up parent.) | 41 | * (but don't run atexit() stuff, which would screw up parent.) |
42 | */ | 42 | */ |
43 | failed = errno; | 43 | failed = errno; |
44 | bb_perror_msg("can't execute '%s'", argv[0]); | ||
44 | _exit(111); | 45 | _exit(111); |
45 | } | 46 | } |
46 | /* parent */ | 47 | /* parent */ |