From 0314cb662f765d28d281ab81bdb592a951dd80b0 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Mon, 14 Mar 2022 17:55:20 +0100 Subject: [PATCH] Fix build on NetBSD This missed a change to "dir_remoteness_t" from bool Fixes #8788 (cherry picked from commit 695e20c47f692ddd108a16259fe7e39f7070f1a8) --- src/path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path.cpp b/src/path.cpp index eff0cf852..33afd7a96 100644 --- a/src/path.cpp +++ b/src/path.cpp @@ -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;