mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[PR #2206] [MERGED] Check FdEntity::Open() status correctly #2389
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#2389
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/2206
Author: @eryugey
Created: 7/4/2023
Status: ✅ Merged
Merged: 7/4/2023
Merged by: @gaul
Base:
master← Head:open📝 Commits (1)
dde1923Check FdEntity::Open() status correctly📊 Changes
1 file changed (+3 additions, -2 deletions)
View changed files
📝
src/fdcache.cpp(+3 -2)📄 Description
FdEntity::Open() returns -errno on error, but FdManager::Open() only checks if its ret is -1. This may lead to use '-errno' as pseudo fd in next read or write, which would fail due to '-errno' is not in fent map.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.