[PR #2013] [MERGED] Removed const_cast in set_bucket #2304

Closed
opened 2026-03-04 02:04:49 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/2013
Author: @ggtakec
Created: 7/30/2022
Status: Merged
Merged: 7/30/2022
Merged by: @gaul

Base: masterHead: fix_const_cast


📝 Commits (1)

  • 473c19f Removed const_cast in set_bucket

📊 Changes

1 file changed (+6 additions, -2 deletions)

View changed files

📝 src/s3fs.cpp (+6 -2)

📄 Description

Relevant Issue (if applicable)

#2006

Details

Do not use const_cast for const char *, but duplicate it by strdup.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/s3fs-fuse/s3fs-fuse/pull/2013 **Author:** [@ggtakec](https://github.com/ggtakec) **Created:** 7/30/2022 **Status:** ✅ Merged **Merged:** 7/30/2022 **Merged by:** [@gaul](https://github.com/gaul) **Base:** `master` ← **Head:** `fix_const_cast` --- ### 📝 Commits (1) - [`473c19f`](https://github.com/s3fs-fuse/s3fs-fuse/commit/473c19f49d68d2d20c80b2cae33b520532a6ab72) Removed const_cast in set_bucket ### 📊 Changes **1 file changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/s3fs.cpp` (+6 -2) </details> ### 📄 Description ### Relevant Issue (if applicable) #2006 ### Details Do not use const_cast for `const char *`, but duplicate it by `strdup`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 02:04:49 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#2304
No description provided.