Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Bug #18512 - save dead links in tar

git-svn-id: https://svn.php.net/repository/pear/packages/Archive_Tar/trunk@311709 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit 5b985a8e48680542b9904e790b017a7128e931fb 1 parent 136086f
Michiel Rook authored June 01, 2011
2  Archive/Tar.php
@@ -941,7 +941,7 @@ function _addList($p_list, $p_add_dir, $p_remove_dir)
941 941
        	    continue;
942 942
        	}
943 943
 
944  
-        if (!file_exists($v_filename)) {
  944
+        if (!file_exists($v_filename) && !is_link($v_filename)) {
945 945
             $this->_warning("File '$v_filename' does not exist");
946 946
             continue;
947 947
         }
43  tests/deadlinks.phpt
... ...
@@ -0,0 +1,43 @@

0 notes on commit 5b985a8

Please sign in to comment.
Something went wrong with that request. Please try again.