Fix build on NetBSD

This missed a change to "dir_remoteness_t" from bool

Fixes #8788

(cherry picked from commit 695e20c47f)
This commit is contained in:
Fabian Homborg 2022-03-14 17:55:20 +01:00
parent 8c13f5894b
commit 0314cb662f

View file

@ -134,7 +134,7 @@ static dir_remoteness_t path_remoteness(const wcstring &path) {
// In practice the only system to use this path is NetBSD.
struct statvfs buf {};
if (statvfs(narrow.c_str(), &buf) < 0) return dir_remoteness_t::unknown;
return (buf.f_flag & ST_LOCAL) ? false : true;
return (buf.f_flag & ST_LOCAL) ? dir_remoteness_t::local : dir_remoteness_t::remote;
#elif defined(MNT_LOCAL)
struct statfs buf {};
if (statfs(narrow.c_str(), &buf) < 0) return dir_remoteness_t::unknown;