From ffedcdaac37b52bda38d27c199433f8384091fa6 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Thu, 11 Apr 2024 08:05:58 +0200 Subject: [PATCH] Do not interpret unknown file systems as local on Linux No functional change, since with the parent commit, we no longer treat "DirRemoteness::local" different from "DirRemoteness::remote", but we might do so in future, so make sure we don't give a false positive here. Non-Linux systems have ST_LOCAL or MNT_LOCAL, so no unknowns there. See #10434 --- src/path.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/path.rs b/src/path.rs index ad86bc915..d52f5c37f 100644 --- a/src/path.rs +++ b/src/path.rs @@ -725,8 +725,7 @@ fn path_remoteness(path: &wstr) -> DirRemoteness { 0xFF534D42 // CIFS_MAGIC_NUMBER => DirRemoteness::remote, _ => { - // Other FSes are assumed local. - DirRemoteness::local + DirRemoteness::unknown } } }