mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[PR #572] [MERGED] Follow symlinks when searching/archiving #646
Reference in New Issue
Block a user
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/sigoden/dufs/pull/572
Author: @falko17
Created: 4/10/2025
Status: ✅ Merged
Merged: 4/12/2025
Merged by: @sigoden
Base:
main← Head:follow-symlinks-search-archive📝 Commits (1)
102a738fix: follow symlinks when searching/archiving📊 Changes
1 file changed (+83 additions, -60 deletions)
View changed files
📝
src/server.rs(+83 -60)📄 Description
Specifically, this will always follow symlinks when they lead to a path below the dufs root, and will follow other symlinks when
--allow-symlinkis set. This is cherry-picked and modified1 from #566.(I additionally refactored some common functionality out of
zip_dirandhandle_search_dir.)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
Compared to the original implementation, this no longer introduces a new parameter, nor does it prevent symlinks whose target is under the dufs root from being followed when
--allow-symlinkis not set. ↩︎