PHP Pear incorrectly handles backslashes in file names when using Archive/Tar.php

Solution In Progress - Updated -

Issue

When using Archive/Tar.php from the php-pear package, if a file contains backslashes the are translated to forward slashes when put in a tar archive. So when this tar archive is unpacked it created many subdirectories. As this is not intended behaviour, how can this be fixed?

Environment

  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.