Skip to content
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

Trim mount point before matching in encryption code #32690

Merged
merged 2 commits into from
Jun 2, 2022

Conversation

PVince81
Copy link
Member

@PVince81 PVince81 commented Jun 1, 2022

Often times the mount point has a leading slash.
This fix sanitizes it to make sure matching works.

  • add unit test for this function

@PVince81
Copy link
Member Author

PVince81 commented Jun 1, 2022

/backport to stable24

@PVince81
Copy link
Member Author

PVince81 commented Jun 1, 2022

/backport to stable23

@PVince81
Copy link
Member Author

PVince81 commented Jun 1, 2022

/backport to stable22

@PVince81
Copy link
Member Author

PVince81 commented Jun 1, 2022

I've added unit tests for the touched method

Often times the mount point has a leading slash.
This fix sanitizes it to make sure matching works.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
@PVince81 PVince81 force-pushed the bugfix/noid/fix-mountpoint-matching-encryption branch from 08495ca to b212e8d Compare June 1, 2022 16:11
@PVince81 PVince81 requested review from Pytal, artonge and blizzz June 2, 2022 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants