Files
talyz dfe85974ca nixos/logrotate: Fix the config file check phase regex for create/createolddir
The check phase for the config file has to replace any instances of
user and group with the current ones, since logrotate checks whether
they actually exist. However, the create/createolddir substitution
expressions didn't take all different parameter formats into
account. Mainly, if the mode was specified, but not user and group,
the result would be something like

  create 0644nixbld nixbld

since it relies on matching a space at the end of the mode
specification.

To fix this, always append a space before the substituted user and
group.

Also, simplify the formatting by using extended regex and check for
word boundaries after create/createolddir to exclude any incorrect or
unsupported suffixes.
2026-05-29 16:26:07 +02:00
..
2025-07-24 13:55:40 +02:00
2025-10-05 10:50:41 +02:00