mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #2057] [MERGED] Fixed a bug when end of path for mount point is multi slash #2320
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#2320
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/2057
Author: @ggtakec
Created: 11/19/2022
Status: ✅ Merged
Merged: 11/19/2022
Merged by: @ggtakec
Base:
master← Head:mp_dir_obj_bug📝 Commits (1)
c4346b9Fixed a bug when end of path for mount point is multi slash📊 Changes
1 file changed (+2 additions, -4 deletions)
View changed files
📝
src/s3fs.cpp(+2 -4)📄 Description
Relevant Issue (if applicable)
#2016
Details
s3fs expects that the last character of the path is not
/when the mount point is specified by<bucket name> + <path(ex. /path)>.If a charactor
/terminated path(ex. '/path/') will be specified, it will be excluded during option parsing.But there was a bug that multiple
/terminated path(ex./path//).This PR fixed this bug.
If
/path//and a mount point were specified, the files under the mount point were invisible.(Because it searches the path
<bucket>/path//)Also, although files can be manipulated, a file with a path that s3fs cannot recognize has been created.
For example, creating a file named
samplewith this mount point created a file named /path//sample`.In addition, I think that there were very few cases where the mount point was specified as
path//, so I imagine that there is almost no impact on users.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.