bug #9867 #9866 [Filesystem] Fixed mirror for symlinks (COil)

This PR was merged into the 2.3 branch.

Discussion
----------

#9866 [Filesystem] Fixed mirror for symlinks

| Q             | A
| ------------- | ---
| Bug fix?      | [yes]
| New feature?  | [no]
| BC breaks?    | [no]
| Deprecations? | [no]
| Tests pass?   | [yes]
| Fixed tickets | [#9866]
| License       | MIT
| Doc PR        | [NA]

Check the original ticket for the full description and how to reproduce.

The initial PR #9213 was closed.

Commits
-------

d136555 [Filesystem] Fixed mirror for symlinks
This commit is contained in:
Fabien Potencier 2013-12-27 16:15:39 +01:00
commit 3949700e8f

View File

@ -393,7 +393,7 @@ class Filesystem
}
} else {
if (is_link($file)) {
$this->symlink($file, $target);
$this->symlink($file->getLinkTarget(), $target);
} elseif (is_dir($file)) {
$this->mkdir($target);
} elseif (is_file($file)) {