diff --git a/mkdocs/docs/config/link-exdev.md b/mkdocs/docs/config/link-exdev.md index 87bab6e0..1eca5141 100644 --- a/mkdocs/docs/config/link-exdev.md +++ b/mkdocs/docs/config/link-exdev.md @@ -20,6 +20,9 @@ selected by the `open` policy. Creation uses daemon credentials, then sets the source ownership, rather than using the link request's UID/GID, which may be invalid when `allow-idmap` is enabled. A newly created replacement is removed if its ownership cannot be set. + +Source branch selection and path construction retain the same branch +snapshot, even when the branch list is updated at runtime. **NOTE:** It is possible that some applications check the file they link. In those cases, it is possible it will error or complain. diff --git a/src/fuse_link.cpp b/src/fuse_link.cpp index d662f0c5..6ea2aff3 100644 --- a/src/fuse_link.cpp +++ b/src/fuse_link.cpp @@ -306,7 +306,8 @@ _link_exdev(const fs::path &oldpath_, return -EXDEV; } - rv = (*sourcePolicy)(cfg.branches,oldpath_,oldbranches); + const Branches::Ptr branches = cfg.branches; + rv = (*sourcePolicy)(branches,oldpath_,oldbranches); if(rv < 0) return rv; if(oldbranches.empty())