busybox: fix empty password detection in telnetd init (#10432)
[openwrt/openwrt.git] / package / busybox / files / telnet
index 334523eb9fd4d402b2bd44601417094abae8a6e4..994e713e704fb84b173bebcc8667c9327df12a66 100755 (executable)
@@ -8,7 +8,7 @@ has_root_pwd() {
              pwd="${pwd#*root:}"
              pwd="${pwd%%:*}"
 
-       test -n "${pwd#!}"
+       test -n "${pwd#[\!x]}"
 }
 
 get_root_home() {