Repositories / jai.git

jai.git

Clone (read-only): git clone http://git.guha-anderson.com/git/jai.git

Branch

missing parens

Author
David Mazieres <dm@uun.org>
Date
2026-03-24 15:10:14 -0700
Commit
747a9c3f43b476953ee078a2a177a494141e0663
fs.cc
index 2372816..773c6fd 100644
--- a/fs.cc
+++ b/fs.cc
@@ -45,7 +45,7 @@ fdpath(int fd, bool must)
     }
     res = std::format("fd {} [can't determine path]", fd, ec.message());
   }
-  else if (must && !res.is_absolute() || !is_fd_at_path(fd, -1, res))
+  else if (must && (!res.is_absolute() || !is_fd_at_path(fd, -1, res)))
     err("{} not valid complete path for fd {}", res.string(), fd);
   return res;
 }