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

tmpfiles.d man page age-by example incorrect

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

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Minor Minor
    • rhel-9.6
    • rhel-9.5
    • systemd
    • systemd-252-51.el9
    • None
    • Low
    • rhel-plumbers
    • ssg_core_services
    • 26
    • 1
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • All
    • None

      Description

      man 5 tmpfiles.d , Age-by example is incorrect.

      -d /tmp/foo/bar - - - - bmA:1h -</programlisting></para>

      +d /tmp/foo/bar - - - bmA:1h -</programlisting></para>

       

      Affected version:  

      systemd-252-46.el9_5.2.x86_64.rpm

       

      Additional Info

      It is fixed by systemd upstream.

      $ git show f90360eb7417e

      commit f90360eb7417e083650034ad819790df0c389bd1

      Author: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>

      Date:   Wed May 17 11:16:56 2023 +0200

       

          man/tmpfiles: fix off-by-one in example

         

          Reported and diagnosed by gitterman. Fixes #26617.

       

      diff --git a/man/tmpfiles.d.xml b/man/tmpfiles.d.xml index a105b8af394a..f691eef25d85 100644

      — a/man/tmpfiles.d.xml

      +++ b/man/tmpfiles.d.xml

      @@ 647,7 +647,7 @@ w /proc/sys/vm/swappiness - - - - 10</programlisting></para>

             <para>For example:<programlisting>  # Files created and modified, and directories accessed more than  # an hour ago in "/tmp/foo/bar", are subject to time-based cleanup.

      -d /tmp/foo/bar - - - - bmA:1h -</programlisting></para>

      +d /tmp/foo/bar - - - bmA:1h -</programlisting></para>

       

             <para>Note that while the aging algorithm is run an exclusive BSD file lock (see <citerefentry

             project='man-pages'><refentrytitle>flock</refentrytitle><manvolnum>2</manvolnum></citerefentry>) is

       

       

      What is the impact of this issue to you?

      User unable to configure systemd-tmpfiles-clean using age-by.

      How reproducible is this bug?:

      Always

      Additional Information.

      Following KB refer the man 5 tmpfiles.d.

      And the example in the KB is also incorrect.

      https://access.redhat.com/solutions/3512701

       

              jamacku@redhat.com Jan Macku
              MasanariIidaNfr Masanari Iida
              HPE Confidential Group
              systemd maint mailing list systemd maint mailing list
              Frantisek Sumsal Frantisek Sumsal
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: