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

tar --xattrs -xf failure

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

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-9.7.z
    • rhel-9.8
    • tar
    • None
    • tar-1.34-9.el9_7
    • Yes
    • Important
    • rhel-base-utils-core
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • Release Note Not Required
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

      What were you trying to do that didn't work?

      Extract a tar file with --xattrs

      What is the impact of this issue to you?

      The IdM backup/restore functionality is broken. Our tools rely on tar to backup files and use --xattrs --selinux

      Please provide the package NVR for which the bug is seen:

      tar-1.34-8.el9_7

      How reproducible is this bug?:

      Always

      Steps to reproduce

       

      1. dnf install -y ipa-client
      2. touch /etc/ipa/default.conf
      3. mkdir -p /tmp/testdir
      4. tar --xattrs --selinux -cf /tmp/testdir/files.tar /etc/ipa/default.conf /etc/resolv.conf
      5. cd /tmp/testdir
      6. tar --xattrs --selinux -xf /tmp/testdir/files.tar etc/ipa/default.conf
        tar: etc/ipa/default.conf: Cannot open: No such file or directory
        tar: Exiting with failure status due to previous errors

        Expected results

      Should succeed

      Actual results

      Extraction fails with 

      tar: etc/ipa/default.conf: Cannot open: No such file or directory
      tar: Exiting with failure status due to previous errors

              rhn-support-pcahyna Pavel Cahyna
              frenaud@redhat.com Florence Renaud
              Pavel Cahyna Pavel Cahyna
              Radka Brychtova Radka Brychtova
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: