Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sat, 24 Aug 2019 05:19:51
Message-Id: 1566623983.203e52e1a0289a48fcf4c3077370d48484b243b1.mgorny@gentoo
1 commit: 203e52e1a0289a48fcf4c3077370d48484b243b1
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 24 05:18:57 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 24 05:19:43 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=203e52e1
7
8 acct-user.eclass: Fix typo in eislocked()
9
10 Reported by Hello71.
11
12 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
13
14 eclass/acct-user.eclass | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17 diff --git a/eclass/acct-user.eclass b/eclass/acct-user.eclass
18 index c1396141454..0ce7545cd1c 100644
19 --- a/eclass/acct-user.eclass
20 +++ b/eclass/acct-user.eclass
21 @@ -168,8 +168,8 @@ eislocked() {
22 *)
23 # NB: 'no password' and 'locked' are indistinguishable
24 # but we also expire the account which is more clear
25 - [[ $(getent shadow ftp | cut -d: -f2) == '!'* ]] &&
26 - [[ $(getent shadow ftp | cut -d: -f8) == 1 ]]
27 + [[ $(getent shadow "$1" | cut -d: -f2) == '!'* ]] &&
28 + [[ $(getent shadow "$1" | cut -d: -f8) == 1 ]]
29 ;;
30 esac
31 }