projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
base-files: fix check for empty password warning
[openwrt/openwrt.git]
/
package
/
base-files
/
files
/
etc
/
profile
diff --git
a/package/base-files/files/etc/profile
b/package/base-files/files/etc/profile
index d70bafca49ed0991d903be3f1b63f75a9282aa1b..f241ab2ef38658cfbb2476a087a2a6eba403351a 100644
(file)
--- a/
package/base-files/files/etc/profile
+++ b/
package/base-files/files/etc/profile
@@
-30,8
+30,7
@@
alias ll='ls -alF --color=auto'
unset FILE
}
-if ( grep -qsE '^root:[!x]?:' /etc/shadow && \
- grep -qsE '^root:[!x]?:' /etc/passwd && \
+if ( grep -qs '^root::' /etc/shadow && \
[ -z "$FAILSAFE" ] )
then
cat << EOF