diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-10-20 15:07:19 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-10-20 15:07:19 +0000 |
commit | 6ae004207b1581f79b980e36c7f556aec964dc16 (patch) | |
tree | 8ceb9131011a2ddb85643fe63ce5d3eacb4c917d | |
parent | 50b9e7832e6a405b509f8f2f225ea635682c3d49 (diff) | |
download | upstream-6ae004207b1581f79b980e36c7f556aec964dc16.tar.gz upstream-6ae004207b1581f79b980e36c7f556aec964dc16.tar.bz2 upstream-6ae004207b1581f79b980e36c7f556aec964dc16.zip |
base-files: fix telnet login on musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43006 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-x | package/base-files/files/bin/login.sh | 4 |
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." |