Commit 1a5e19b
committed
bug #49581 Avoid leading .. for temporary files from Filesystem recursive remove (giosh94mhz)
This PR was merged into the 5.4 branch.
Discussion
----------
Avoid leading .. for temporary files from Filesystem recursive remove
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets |
| License | MIT
| Doc PR |
Method `Filesystem::doRemove` is using renaming of parent directory before recursive removal, in order to implement atomic remove.
This is a good thing, but to implement this is generating a random path name, with a modified base64 which replaces base64's `=` sign with `.`. This may lead to directory named as `path/..8U6/` which freaked out our synchronization tools and security log scanner.
Since the leading `.` is already (correctly) hard-coded, I see no issue in using `_` as a safer alternative.
Commits
-------
2dd8183 Avoid leading .. for temporary files from Filesystem recursive remove1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
0 commit comments