aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-10-06 16:33:14 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-10-06 16:33:14 +0000
commite532e2ac8cbcf1f44f664ec62924748476751662 (patch)
tree51632bf28a8479caa72d865bc6b14e6448dc2945
parentdaf544953f197856868cb3b0c79c809dc84de837 (diff)
downloadupstream-e532e2ac8cbcf1f44f664ec62924748476751662.tar.gz
upstream-e532e2ac8cbcf1f44f664ec62924748476751662.tar.bz2
upstream-e532e2ac8cbcf1f44f664ec62924748476751662.zip
fix busybox http auth if the root user has an empty password
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12869 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/busybox/patches/310-passwd_access.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/busybox/patches/310-passwd_access.patch b/package/busybox/patches/310-passwd_access.patch
index 78a43d7782..9a1cc95bb3 100644
--- a/package/busybox/patches/310-passwd_access.patch
+++ b/package/busybox/patches/310-passwd_access.patch
@@ -3,7 +3,7 @@
--- a/networking/httpd.c
+++ b/networking/httpd.c
-@@ -1697,21 +1697,32 @@
+@@ -1697,21 +1697,32 @@ static int check_user_passwd(const char
if (ENABLE_FEATURE_HTTPD_AUTH_MD5) {
char *md5_passwd;
@@ -17,7 +17,7 @@
+
+ pwd = getpwnam(&md5_passwd[4]);
+ if(!pwd->pw_passwd || !pwd->pw_passwd[0] || pwd->pw_passwd[0] == '!')
-+ continue;
++ return 1;
+
+ md5_passwd = pwd->pw_passwd;
+ goto check_md5_pw;