projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[ar7] refresh and refine vlynq patch, patch from sn9
[openwrt.git]
/
package
/
busybox
/
patches
/
310-passwd_access.patch
diff --git
a/package/busybox/patches/310-passwd_access.patch
b/package/busybox/patches/310-passwd_access.patch
index
78a43d7
..
24241c1
100644
(file)
--- 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
--- a/networking/httpd.c
+++ b/networking/httpd.c
-@@ -1
697,21 +1697,32 @@
+@@ -1
717,21 +1717,32 @@ static int check_user_passwd(const char
if (ENABLE_FEATURE_HTTPD_AUTH_MD5) {
char *md5_passwd;
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] == '!')
+
+ 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;
+
+ md5_passwd = pwd->pw_passwd;
+ goto check_md5_pw;
This page took
0.023362 seconds
and
4
git commands to generate.