projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50b9e78
)
base-files: fix telnet login on musl
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 20 Oct 2014 15:07:19 +0000
(15:07 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 20 Oct 2014 15:07:19 +0000
(15:07 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43006
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
package/base-files/files/bin/login.sh
patch
|
blob
|
history
diff --git
a/package/base-files/files/bin/login.sh
b/package/base-files/files/bin/login.sh
index
04b3fe2
..
25627b6
100755
(executable)
--- 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 -qs
E '^root:[!x]
?:' /etc/shadow || \
+ ! grep -qs
E '^root:[!x]
?:' /etc/passwd ) && \
[ -z "$FAILSAFE" ]
then
echo "Login failed."