-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Filesystem] Fix mirroring a directory into itself or in his child with realpath checks #30116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
12c07b8
to
55e8d21
Compare
fe32a0a
to
785dc05
Compare
f80d827
to
a3efb95
Compare
Add handle for relative paths. CI build fails not related |
e174f37
to
5256eaa
Compare
Added a bypass for symlink mirror tests on windows CI build fails not related |
I think this PR does not qualify for being a bug fix but rather as a new feature. |
Hi @fabpot , did you really think this PR should be qualify as a new feature ? Since the behavior of Indeed, adding absolute path management to |
I still think this is a new feature as the use case itself was not supported at all. |
Ok So I'll rebase this branch on master and change de PR. |
5256eaa
to
dd2d409
Compare
…path name is equal to the target path Added a new test what is called testMirrorAvoidCopyingTargetDirectoryIfInSourceDirectory Adjustments to comply with the Symfony Code Standards
dd2d409
to
b312b7c
Compare
b312b7c
to
8011f49
Compare
@fabpot as you asked for, I've rebase this PR on master and qualify it as a new feature. |
Thank you @XuruDragon. |
…in his child with realpath checks (Fleuv, XuruDragon) This PR was merged into the 4.3-dev branch. Discussion ---------- [Filesystem] Fix mirroring a directory into itself or in his child with realpath checks | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | none / PR #29857 | License | MIT | Doc PR | n/a This this the continuity of #29857 by @Fleuv Fix a bug while trying to mirror a directory into itself or in a child Adding handle real path checks when mirroring. Commits ------- 8011f49 Handling relative/absolute path 59437a4 Skipping iterations in the mirror() method where the iterated file's path name is equal to the target path
This this the continuity of #29857 by @Fleuv
Fix a bug while trying to mirror a directory into itself or in a child
Adding handle real path checks when mirroring.