Apply some more general fixes

This commit is contained in:
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. # strictly required but it affords us flexibility for zero cost so whatever.
ents=() ents=()
case "$file" in case "$file" in
/etc/shadow) */shadow)
ents=("passwd") ents=("passwd")
;; ;;
/etc/gshadow) */gshadow)
ents=("group") ents=("group")
;; ;;
*) *)
@@ -88,7 +88,7 @@ for file in /etc/shadow /etc/gshadow; do
else else
# If we're at this point in the code path, we now know that we for-sure are # 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 # 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" echo "Fixing broken entity: $name"
fi fi
done < "$file" done < "$file"