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

crontab always prints an error if ~/.cache does not exist [rhel-10.1]

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-10.1
    • rhel-10.0
    • cronie
    • None
    • cronie-1.7.0-12.el10
    • No
    • Low
    • 1
    • rhel-base-utils-antfarm
    • ssg_core_services
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • BaseUtilsAF Sprint 00_CY25
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      cronie, as shipped with RHEL 10, has a new feature to keep backups of previous crontabs under ~/.cache/crontab/. The `crontab` binary does this automatically.

      However, if ~/.cache does not exist, any user editing their own crontab (after it was created previously, so the backup mechanism kicks in) will get the following error printed in the console:

      $ crontab -e
      crontab: installing new crontab
      /home/user/.cache/crontab: mkdir: No such file or directory
      

      Note that if ~/.cache/crontab does not exist, the crontab binary creates it, but if ~/.cache does not exist, it does not and errors out. This affects all users, provided ~/.cache does not exist when editing an already-existing crontab.

      As a workaround, ~/.cache can be manually created. However, `crontab` should create ~/.cache if needed and it does not exist, to avoid the unnecessary error.

       

       

              opohorel@redhat.com Ondrej Pohorelsky
              rhn-support-jsantos Juan Santos
              Ondrej Pohorelsky Ondrej Pohorelsky
              Jakub Heger Jakub Heger
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: