commit:     203e52e1a0289a48fcf4c3077370d48484b243b1
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 24 05:18:57 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Aug 24 05:19:43 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=203e52e1

acct-user.eclass: Fix typo in eislocked()

Reported by Hello71.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 eclass/acct-user.eclass | 4 ++--
 1 file 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
 }

Reply via email to