aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-06-25 01:46:53 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-06-25 01:46:53 +0200
commit41ddd9f60604cd994eeb37eb5708e9d3d5c8484b (patch)
treea2c7b5e6ea0d26715bac8c1f9f4b4e1fbad22534 /networking
parent2b46fd49b14b2ac30e0c767c65ac2b29f6922a45 (diff)
downloadbusybox-w32-41ddd9f60604cd994eeb37eb5708e9d3d5c8484b.tar.gz
busybox-w32-41ddd9f60604cd994eeb37eb5708e9d3d5c8484b.tar.bz2
busybox-w32-41ddd9f60604cd994eeb37eb5708e9d3d5c8484b.zip
*: make exec failure message more consistent
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/httpd.c2
-rw-r--r--networking/ifupdown.c2
-rw-r--r--networking/inetd.c2
-rw-r--r--networking/nc_bloaty.c2
-rw-r--r--networking/tcpudp.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index 6dbc219e7..bab7b99cb 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -1474,7 +1474,7 @@ static void send_cgi_and_exit(
1474 * in the current directory */ 1474 * in the current directory */
1475 execv(argv[0], argv); 1475 execv(argv[0], argv);
1476 if (verbose) 1476 if (verbose)
1477 bb_perror_msg("exec %s", argv[0]); 1477 bb_perror_msg_and_die("can't execute '%s'", argv[0]);
1478 error_execing_cgi: 1478 error_execing_cgi:
1479 /* send to stdout 1479 /* send to stdout
1480 * (we are CGI here, our stdout is pumped to the net) */ 1480 * (we are CGI here, our stdout is pumped to the net) */
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 2f3dd1d7b..714d2a107 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -1053,7 +1053,7 @@ static int popen2(FILE **in, FILE **out, char *command, char *param)
1053 xmove_fd(infd.rd, 0); 1053 xmove_fd(infd.rd, 0);
1054 xmove_fd(outfd.wr, 1); 1054 xmove_fd(outfd.wr, 1);
1055 BB_EXECVP(command, argv); 1055 BB_EXECVP(command, argv);
1056 _exit(127); 1056 bb_perror_msg_and_die("can't execute '%s'", command);
1057 } 1057 }
1058 /* parent */ 1058 /* parent */
1059 close(infd.rd); 1059 close(infd.rd);
diff --git a/networking/inetd.c b/networking/inetd.c
index 7aa6b7b19..6d21e18f5 100644
--- a/networking/inetd.c
+++ b/networking/inetd.c
@@ -1380,7 +1380,7 @@ int inetd_main(int argc UNUSED_PARAM, char **argv)
1380 sigaction_set(SIGPIPE, &saved_pipe_handler); 1380 sigaction_set(SIGPIPE, &saved_pipe_handler);
1381 restore_sigmask(&omask); 1381 restore_sigmask(&omask);
1382 BB_EXECVP(sep->se_program, sep->se_argv); 1382 BB_EXECVP(sep->se_program, sep->se_argv);
1383 bb_perror_msg("exec %s", sep->se_program); 1383 bb_perror_msg_and_die("can't execute '%s'", sep->se_program);
1384 do_exit1: 1384 do_exit1:
1385 /* eat packet in udp case */ 1385 /* eat packet in udp case */
1386 if (sep->se_socktype != SOCK_STREAM) 1386 if (sep->se_socktype != SOCK_STREAM)
diff --git a/networking/nc_bloaty.c b/networking/nc_bloaty.c
index e14d512ed..8d27e9682 100644
--- a/networking/nc_bloaty.c
+++ b/networking/nc_bloaty.c
@@ -230,7 +230,7 @@ static int doexec(char **proggie)
230 /* dup2(0, 2); - do we *really* want this? NO! 230 /* dup2(0, 2); - do we *really* want this? NO!
231 * exec'ed prog can do it yourself, if needed */ 231 * exec'ed prog can do it yourself, if needed */
232 execvp(proggie[0], proggie); 232 execvp(proggie[0], proggie);
233 bb_perror_msg_and_die("exec"); 233 bb_perror_msg_and_die("can't execute '%s'", proggie[0]);
234} 234}
235 235
236/* connect_w_timeout: 236/* connect_w_timeout:
diff --git a/networking/tcpudp.c b/networking/tcpudp.c
index b32fad624..4e4756738 100644
--- a/networking/tcpudp.c
+++ b/networking/tcpudp.c
@@ -504,7 +504,7 @@ int tcpudpsvd_main(int argc UNUSED_PARAM, char **argv)
504#else 504#else
505 BB_EXECVP(argv[0], argv); 505 BB_EXECVP(argv[0], argv);
506#endif 506#endif
507 bb_perror_msg_and_die("exec '%s'", argv[0]); 507 bb_perror_msg_and_die("can't execute '%s'", argv[0]);
508} 508}
509 509
510/* 510/*