Skip to content

[stable30] Fix copying or moving from shared groupfolders - #48984

Merged
provokateurin merged 2 commits into
stable30from
backport/47847/stable30
Oct 29, 2024
Merged

[stable30] Fix copying or moving from shared groupfolders#48984
provokateurin merged 2 commits into
stable30from
backport/47847/stable30

Conversation

@backportbot

Copy link
Copy Markdown

Backport of PR #47847

danxuliuand others added 2 commits October 29, 2024 15:02
When copying or moving between two local storages the source path (on
disk) to copy or move from is got from the unjailed path of the source
storage. However, if the source storage has more than one jail getting
the unjailed path resolves the most external jail, but the source path
needs to be got from the most internal jail instead (the one closer to
the local storage).
This can happen, for example, with a shared groupfolder: in that case
there is an external jail for the shared storage, and one internal jail
for the groupfolder storage wrapped by the shared storage.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Robin Appelman <robin@icewind.nl>

@danxuliudanxuliu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works 👍

@provokateurin
provokateurin merged commit 9c02abb into stable30Oct 29, 2024
@provokateurin
provokateurin deleted the backport/47847/stable30 branch October 29, 2024 16:27
@AltahrimAltahrim mentioned this pull request Oct 30, 2024
2 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@provokateurin@danxuliu@icewind1991