From bd6cf0814c2ce45fc722cf4339383179e4be78b1 Mon Sep 17 00:00:00 2001 From: Aearil Date: Wed, 31 Jul 2019 20:52:20 -0400 Subject: [PATCH] Fix running sysusers.in without arguments The `if [ ${#args[@]} -eq 0 ]; then` codepath would never be taken as getopt always added '--' to the argument list, increasing the argument array length. --- bin/sysusers.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sysusers.in b/bin/sysusers.in index db20335..2d5b7aa 100755 --- a/bin/sysusers.in +++ b/bin/sysusers.in @@ -65,7 +65,7 @@ while true; do version=1 shift; ;; - --) args=("${@}"); shift; break;; + --) shift; args=("${@}"); break;; *) break;; esac done