summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-08-24 07:18:57 +0200
committerMichał Górny <mgorny@gentoo.org>2019-08-24 07:19:43 +0200
commit203e52e1a0289a48fcf4c3077370d48484b243b1 (patch)
tree0b9f2e9a6c99b7973f52deaed9a3cddd6cefbf48
parentmedia-gfx/gmic: move virtual/pkgconfig to BDEPEND (diff)
downloadgentoo-203e52e1a0289a48fcf4c3077370d48484b243b1.tar.gz
gentoo-203e52e1a0289a48fcf4c3077370d48484b243b1.tar.bz2
gentoo-203e52e1a0289a48fcf4c3077370d48484b243b1.zip
acct-user.eclass: Fix typo in eislocked()
Reported by Hello71. Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--eclass/acct-user.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/acct-user.eclass b/eclass/acct-user.eclass
index c1396141454..0ce7545cd1c 100644
--- 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
}