acct-user.eclass: Fix typo in eislocked()
authorMichał Górny <mgorny@gentoo.org>
Sat, 24 Aug 2019 05:18:57 +0000 (07:18 +0200)
committerMichał 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

index c1396141454b26b68cd8e9ecc42c08000fc434c8..0ce7545cd1c57df535a2b7455491d780a163f19a 100644 (file)
@@ -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
 }