Author: nbd
Date: 2014-10-20 17:07:19 +0200 (Mon, 20 Oct 2014)
New Revision: 43006

Modified:
   trunk/package/base-files/files/bin/login.sh
Log:
base-files: fix telnet login on musl

Signed-off-by: Felix Fietkau <[email protected]>

Modified: trunk/package/base-files/files/bin/login.sh
===================================================================
--- trunk/package/base-files/files/bin/login.sh 2014-10-20 13:55:11 UTC (rev 
43005)
+++ trunk/package/base-files/files/bin/login.sh 2014-10-20 15:07:19 UTC (rev 
43006)
@@ -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."
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to