forked from Ivasoft/openwrt
base-files: another empty password check fix (#10440)
SVN-Revision: 29208
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user