Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-65316

dovecot.sysusers does not need an extra "g" entry for dovecot and dovenull, since this is covered by the "u" entries

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Undefined Undefined
    • None
    • CentOS Stream 9
    • dovecot
    • None
    • No
    • None
    • rhel-base-utils-core
    • ssg_core_services
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • 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

      1. rpm --scripts -q dovecot | sort | uniq -c | awk '/getent/ && $1 > 1'
      2.  
      3.  

      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.

              mhlavink Michal Hlavinka
              ajschorr Andrew Schorr (Inactive)
              Michal Hlavinka Michal Hlavinka
              RHEL SST CS base utils QE Bot RHEL SST CS base utils QE Bot
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: