aboutsummaryrefslogtreecommitdiffstats
path: root/misc/far2l/files/patch-far2l_src_mix_MountInfo.cpp
diff options
context:
space:
mode:
authorLexi Winter <ivy@FreeBSD.org>2025-12-01 03:19:41 +0000
committerLexi Winter <ivy@FreeBSD.org>2025-12-01 03:19:41 +0000
commit2e80774d0b20d167bc0a9e2b63dafbfb171c0d22 (patch)
tree25f0138e1af8902b92dacc8cce09b267447c17db /misc/far2l/files/patch-far2l_src_mix_MountInfo.cpp
parentf85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (diff)
parent1a30da80670973368b399f2b01fe9c04b91a1273 (diff)
Merge remote-tracking branch 'freebsd/main' into lf/mainlf/main
Diffstat (limited to 'misc/far2l/files/patch-far2l_src_mix_MountInfo.cpp')
-rw-r--r--misc/far2l/files/patch-far2l_src_mix_MountInfo.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/misc/far2l/files/patch-far2l_src_mix_MountInfo.cpp b/misc/far2l/files/patch-far2l_src_mix_MountInfo.cpp
new file mode 100644
index 000000000000..3fa268388fd4
--- /dev/null
+++ b/misc/far2l/files/patch-far2l_src_mix_MountInfo.cpp
@@ -0,0 +1,20 @@
+--- far2l/src/mix/MountInfo.cpp.orig 2025-10-26 08:39:52 UTC
++++ far2l/src/mix/MountInfo.cpp
+@@ -384,7 +384,7 @@ std::string MountInfo::GetFileSystem(const std::string
+ return out;
+ }
+
+-std::string MountInfo::GetFileSystemMountPoint(const wchar_t *lpwsz_path) const
++std::string MountInfo::GetFileSystemMountPoint(const wchar_t *lpwsz_path, bool want_device) const
+ {
+ std::string out;
+ size_t longest_match = 0;
+@@ -394,7 +394,7 @@ std::string MountInfo::GetFileSystemMountPoint(const w
+ for (const auto &it : *_mountpoints) {
+ if (it.path.size() > longest_match && StrStartsFrom(path, it.path.c_str())) {
+ longest_match = it.path.size();
+- out = it.path;
++ out = want_device ? it.device : it.path;
+ }
+ }
+ return out;