-
Bug
-
Resolution: Duplicate
-
Undefined
-
None
-
CentOS Stream 9
-
None
-
No
-
None
-
rhel-base-utils-core
-
ssg_core_services
-
None
-
False
-
False
-
-
None
-
None
-
None
-
None
-
None
What were you trying to do that didn't work?
The preinstall scripts for dovecot are very repetitive.
What is the impact of this issue to you?
Almost none, but it's somehow slightly annoying.
Please provide the package NVR for which the bug is seen:
dovecot-2.3.16-14.el9.x86_64
How reproducible is this bug?:
Always
Steps to reproduce
- rpm --scripts -q dovecot | sort | uniq -c | awk '/getent/ && $1 > 1'
Expected results
Not so much repetition.
Actual results
2 getent group 'dovecot' >/dev/null || groupadd -f -g '97' -r 'dovecot' || :
3 getent group 'dovenull' >/dev/null || groupadd -r 'dovenull' || :
2 getent passwd 'dovenull' >/dev/null || \
I think there's also a bug in the systemd-rpm-macros script /usr/lib/rpm/sysusers.generate-pre.sh, but that's another story. If you
look at the parse function inside there, you'll see that "u" entries implicitly run "g" as well if the group is provided. So there's no need for extra "g" entries. Unless you're
going to tell me that sysusers.generate-pre.sh is not performing according to spec.
- is duplicated by
-
RHEL-65314 dovecot.sysusers does not need an extra "g" entry for dovecot and dovenull, since this is covered by the "u" entries
-
- Closed
-