Fix typo in file.cc

This commit is contained in:
Maxime Coste 2021-03-12 09:10:19 +11:00
parent 8e463e63ea
commit 545db22ae4

View File

@ -362,7 +362,7 @@ void write_buffer_to_file(Buffer& buffer, StringView filename,
bool force = flags & WriteFlags::Force; bool force = flags & WriteFlags::Force;
if ((replace or force) and (::stat(zfilename, &st) != 0 or 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; force = false;
replace = false; replace = false;