diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-11-17 09:40:06 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-11-17 09:40:06 +0000 |
commit | 8fc48ae271ed4a47f1c336168dc504e8b0980f3a (patch) | |
tree | 79469742d04f3855467cdf69432f96fc7392001b /package/base-files/files/bin/login.sh | |
parent | 0e9b267b5c2fdf79ac9627c05a2460ee36224e92 (diff) | |
download | upstream-8fc48ae271ed4a47f1c336168dc504e8b0980f3a.tar.gz upstream-8fc48ae271ed4a47f1c336168dc504e8b0980f3a.tar.bz2 upstream-8fc48ae271ed4a47f1c336168dc504e8b0980f3a.zip |
[package] base-files: another empty password check fix (#10440)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29208 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/bin/login.sh')
-rwxr-xr-x | package/base-files/files/bin/login.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |