aboutsummaryrefslogtreecommitdiff
path: root/networking/httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/httpd.c')
-rw-r--r--networking/httpd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index a0a4abc10..1757e09c9 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -1025,7 +1025,7 @@ static void log_and_exit(void)
1025 */ 1025 */
1026 1026
1027 if (verbose > 2) 1027 if (verbose > 2)
1028 bb_error_msg("closed"); 1028 bb_simple_error_msg("closed");
1029 _exit(xfunc_error_retval); 1029 _exit(xfunc_error_retval);
1030} 1030}
1031 1031
@@ -1220,7 +1220,7 @@ static void send_headers(unsigned responseNum)
1220 } 1220 }
1221 if (full_write(STDOUT_FILENO, iobuf, len) != len) { 1221 if (full_write(STDOUT_FILENO, iobuf, len) != len) {
1222 if (verbose > 1) 1222 if (verbose > 1)
1223 bb_perror_msg("error"); 1223 bb_simple_perror_msg("error");
1224 log_and_exit(); 1224 log_and_exit();
1225 } 1225 }
1226} 1226}
@@ -1838,7 +1838,7 @@ static NOINLINE void send_file_and_exit(const char *url, int what)
1838 if (count < 0) { 1838 if (count < 0) {
1839 IF_FEATURE_USE_SENDFILE(fin:) 1839 IF_FEATURE_USE_SENDFILE(fin:)
1840 if (verbose > 1) 1840 if (verbose > 1)
1841 bb_perror_msg("error"); 1841 bb_simple_perror_msg("error");
1842 } 1842 }
1843 log_and_exit(); 1843 log_and_exit();
1844} 1844}
@@ -2149,7 +2149,7 @@ static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr)
2149 if (rmt_ip_str) 2149 if (rmt_ip_str)
2150 applet_name = rmt_ip_str; 2150 applet_name = rmt_ip_str;
2151 if (verbose > 2) 2151 if (verbose > 2)
2152 bb_error_msg("connected"); 2152 bb_simple_error_msg("connected");
2153 } 2153 }
2154 if_ip_denied_send_HTTP_FORBIDDEN_and_exit(remote_ip); 2154 if_ip_denied_send_HTTP_FORBIDDEN_and_exit(remote_ip);
2155 2155
@@ -2746,7 +2746,7 @@ int httpd_main(int argc UNUSED_PARAM, char **argv)
2746 if (opt & OPT_SETUID) { 2746 if (opt & OPT_SETUID) {
2747 if (ugid.gid != (gid_t)-1) { 2747 if (ugid.gid != (gid_t)-1) {
2748 if (setgroups(1, &ugid.gid) == -1) 2748 if (setgroups(1, &ugid.gid) == -1)
2749 bb_perror_msg_and_die("setgroups"); 2749 bb_simple_perror_msg_and_die("setgroups");
2750 xsetgid(ugid.gid); 2750 xsetgid(ugid.gid);
2751 } 2751 }
2752 xsetuid(ugid.uid); 2752 xsetuid(ugid.uid);