summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}