From 203e52e1a0289a48fcf4c3077370d48484b243b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 24 Aug 2019 07:18:57 +0200 Subject: [PATCH] acct-user.eclass: Fix typo in eislocked() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reported by Hello71. Signed-off-by: Michał Górny --- 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 c1396141454b..0ce7545cd1c5 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 } -- 2.26.2