mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-24 21:06:02 +03:00
[PR #2004] [MERGED] Avoid mutating mybasename and mydirname parameters #2298
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#2298
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/2004
Author: @gaul
Created: 7/28/2022
Status: ✅ Merged
Merged: 7/28/2022
Merged by: @ggtakec
Base:
master← Head:const_cast📝 Commits (1)
818a943Avoid mutating mybasename and mydirname parameters📊 Changes
1 file changed (+12 additions, -4 deletions)
View changed files
📝
src/s3fs_util.cpp(+12 -4)📄 Description
basenameanddirnamemutate their inputs butconst_casthid thisbehavior. Also shuffle helpers to avoid unnecessary
std::string.Follows on to
404c284440.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.