Bug #21058 [Com]: Long symlinks are not supported

From: Date: Wed, 26 Dec 2018 12:01:10 +0000
Subject: Bug #21058 [Com]: Long symlinks are not supported
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to [email protected] to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=21058&edit=1

 ID:               21058
 Comment by:       mpp
 Reported By:      tentje at gmail dot com
 Summary:          Long symlinks are not supported
 Status:           Closed
 Type:             Bug
 Package:          Archive_Tar
 Operating System: Linux
 Package Version:  1.4.2
 PHP Version:      Irrelevant
 Assigned To:      mrook
 New Comment:

This update broke the symlinks in our tar files:
chmod: cannot operate on dangling symlink ‘vendor/bin/robo’

Before 1.4.4 we had correct symlinks:

ls -la vendor/bin/robo 
lrwxrwxrwx 1 web web 26 Dec 21 16:14 vendor/bin/robo ->
../consolidation/robo/robo

After 1.4.4 we had broken symlinks:

ls -la vendor/bin/robo 
lrwxrwxrwx 1 web web 26 Dec 21 16:14 vendor/bin/robo ->
consolidation/robo/robo


Previous Comments:
------------------------------------------------------------------------

[2018-12-20 15:27:29] mrook

<div id="changeset">
<span class="removed">-Status:           Open</span>
<span class="added">+Status:           Closed</span>
<span class="removed">-Assigned To:</span>
<span class="added">+Assigned To:      mrook</span>
<span class="removed">-Roadmap Versions:</span>
<span class="added">+Roadmap Versions: 1.4.4</span>
</div>This bug has been fixed in SVN.

If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.

Sorry this took so long, but I've been finally been able to spend some
time on this issue. Will appear in 
the next release!

------------------------------------------------------------------------

[2016-04-28 04:18:05] pbeernink

Description:
------------
When you create a tar including symlinks which point to a location over
100 characters long, the link location is truncated to 100 chars.

It looks like this is cased because the writeLongHeader() is only called
if the filename itself is longer that 99 chars, not taking into account
the location the link points to.

------------------------------------------------------------------------


-- 
Edit this bug report at http://pear.php.net/bugs/bug.php?id=21058&edit=1


Thread (1 message)

  • mpp
« previous php.pear.bugs (#11434) next »