From b668d3deb84d791f5ca5ecd5544658457c44b7b0 Mon Sep 17 00:00:00 2001 From: jow Date: Thu, 17 Nov 2011 09:40:06 +0000 Subject: [package] base-files: another empty password check fix (#10440) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29208 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/bin/login.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/base-files/files') diff --git a/package/base-files/files/bin/login.sh b/package/base-files/files/bin/login.sh index 6682b022b..04b3fe250 100755 --- a/package/base-files/files/bin/login.sh +++ b/package/base-files/files/bin/login.sh @@ -1,7 +1,7 @@ #!/bin/sh # Copyright (C) 2006-2011 OpenWrt.org -if ( ! grep -qs '^root::' /etc/shadow || \ +if ( ! grep -qs '^root:[!x]\?:' /etc/shadow || \ ! grep -qs '^root:[!x]\?:' /etc/passwd ) && \ [ -z "$FAILSAFE" ] then -- cgit v1.2.3