From 545db22ae464668d36fad500690a77c019936910 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 12 Mar 2021 09:10:19 +1100 Subject: [PATCH] Fix typo in file.cc --- src/file.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file.cc b/src/file.cc index 8c9705b5..a92c6783 100644 --- a/src/file.cc +++ b/src/file.cc @@ -362,7 +362,7 @@ void write_buffer_to_file(Buffer& buffer, StringView filename, bool force = flags & WriteFlags::Force; if ((replace or force) and (::stat(zfilename, &st) != 0 or - (sb.st_mode & S_IFMT) != S_IFREG)) + (st.st_mode & S_IFMT) != S_IFREG)) { force = false; replace = false;