fix password update bug for webif/mini_httpd
authorFelix Fietkau <nbd@openwrt.org>
Sat, 4 Feb 2006 23:14:26 +0000 (23:14 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 4 Feb 2006 23:14:26 +0000 (23:14 +0000)
SVN-Revision: 3133

openwrt/package/webif/files/usr/lib/webif/webif.sh

index 7ecf0882fe6fe4aac0d28199ef5b23a4a5739e1a..619557fe4384d0962d5dc0167fe2056a009b8bc4 100644 (file)
@@ -196,7 +196,7 @@ apply_passwd() {
                        killall -HUP httpd
                        ;;
                mini_httpd/*)
-                       grep root /etc/passwd | cut -d: -f1,2 > $cgidir/.htpasswd
+                       grep '^root:' /etc/passwd | cut -d: -f1,2 > $cgidir/.htpasswd
                        killall -HUP mini_httpd
                        ;;
        esac