mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
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
This commit is contained in:
parent
dc5823d150
commit
ffedcdaac3
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue