aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-10-20 15:07:19 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-10-20 15:07:19 +0000
commit99a651fd508e189d40262230fa34069fd9ff2bb5 (patch)
tree2f6891132f9abce67e5af276ee79cf603ff94b90
parent2abd1b817eab90f1304a6deeeca1b264c169a86d (diff)
downloadupstream-99a651fd508e189d40262230fa34069fd9ff2bb5.tar.gz
upstream-99a651fd508e189d40262230fa34069fd9ff2bb5.tar.bz2
upstream-99a651fd508e189d40262230fa34069fd9ff2bb5.zip
base-files: fix telnet login on musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43006
-rwxr-xr-xpackage/base-files/files/bin/login.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/bin/login.sh b/package/base-files/files/bin/login.sh
index 04b3fe2502..25627b66b2 100755
--- a/package/base-files/files/bin/login.sh
+++ b/package/base-files/files/bin/login.sh
@@ -1,8 +1,8 @@
#!/bin/sh
# Copyright (C) 2006-2011 OpenWrt.org
-if ( ! grep -qs '^root:[!x]\?:' /etc/shadow || \
- ! grep -qs '^root:[!x]\?:' /etc/passwd ) && \
+if ( ! grep -qsE '^root:[!x]?:' /etc/shadow || \
+ ! grep -qsE '^root:[!x]?:' /etc/passwd ) && \
[ -z "$FAILSAFE" ]
then
echo "Login failed."