Apply some more general fixes

This commit is contained in:
Salt 2024-12-01 22:08:53 -06:00
parent 9971b7f33a
commit b3ed80abb5

View File

@ -51,10 +51,10 @@ for file in /etc/shadow /etc/gshadow; do
# strictly required but it affords us flexibility for zero cost so whatever.
ents=()
case "$file" in
/etc/shadow)
*/shadow)
ents=("passwd")
;;
/etc/gshadow)
*/gshadow)
ents=("group")
;;
*)
@ -88,7 +88,7 @@ for file in /etc/shadow /etc/gshadow; do
else
# If we're at this point in the code path, we now know that we for-sure are
# operating on an entry that will cause systemd-sysusers to bail out
# on invocation
# on invocation. We are thus going to remove it.
echo "Fixing broken entity: $name"
fi
done < "$file"