aboutsummaryrefslogtreecommitdiff
path: root/networking/httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/httpd.c')
-rw-r--r--networking/httpd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index cb8ab763f..ee408eb14 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -873,8 +873,9 @@ static int sendHeaders(HttpResponseNum responseNum)
873 873
874#if ENABLE_FEATURE_HTTPD_BASIC_AUTH 874#if ENABLE_FEATURE_HTTPD_BASIC_AUTH
875 if (responseNum == HTTP_UNAUTHORIZED) { 875 if (responseNum == HTTP_UNAUTHORIZED) {
876 len += sprintf(buf+len, "WWW-Authenticate: Basic realm=\"%s\"\r\n", 876 len += sprintf(buf+len,
877 config->realm); 877 "WWW-Authenticate: Basic realm=\"%s\"\r\n",
878 config->realm);
878 } 879 }
879#endif 880#endif
880 if (responseNum == HTTP_MOVED_TEMPORARILY) { 881 if (responseNum == HTTP_MOVED_TEMPORARILY) {
@@ -2000,7 +2001,7 @@ int httpd_main(int argc, char *argv[])
2000 if (opt & OPT_SETUID) { 2001 if (opt & OPT_SETUID) {
2001 if (ugid.gid != (gid_t)-1) { 2002 if (ugid.gid != (gid_t)-1) {
2002 if (setgroups(1, &ugid.gid) == -1) 2003 if (setgroups(1, &ugid.gid) == -1)
2003 bb_perror_msg_and_die("setgroups"); 2004 bb_perror_msg_and_die("setgroups");
2004 xsetgid(ugid.gid); 2005 xsetgid(ugid.gid);
2005 } 2006 }
2006 xsetuid(ugid.uid); 2007 xsetuid(ugid.uid);