From 8fc48ae271ed4a47f1c336168dc504e8b0980f3a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich 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/bin/login.sh') diff --git a/package/base-files/files/bin/login.sh b/package/base-files/files/bin/login.sh index 6682b022ba..04b3fe2502 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