projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e30fd4
)
acct-user.eclass: Fix typo in eislocked()
author
Michał Górny
<mgorny@gentoo.org>
Sat, 24 Aug 2019 05:18:57 +0000
(07:18 +0200)
committer
Michał Górny
<mgorny@gentoo.org>
Sat, 24 Aug 2019 05:19:43 +0000
(07:19 +0200)
Reported by Hello71.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/acct-user.eclass
patch
|
blob
|
history
diff --git
a/eclass/acct-user.eclass
b/eclass/acct-user.eclass
index c1396141454b26b68cd8e9ecc42c08000fc434c8..0ce7545cd1c57df535a2b7455491d780a163f19a 100644
(file)
--- a/
eclass/acct-user.eclass
+++ b/
eclass/acct-user.eclass
@@
-168,8
+168,8
@@
eislocked() {
*)
# NB: 'no password' and 'locked' are indistinguishable
# but we also expire the account which is more clear
- [[ $(getent shadow
ftp
| cut -d: -f2) == '!'* ]] &&
- [[ $(getent shadow
ftp
| cut -d: -f8) == 1 ]]
+ [[ $(getent shadow
"$1"
| cut -d: -f2) == '!'* ]] &&
+ [[ $(getent shadow
"$1"
| cut -d: -f8) == 1 ]]
;;
esac
}