Commit bab66235b9

LemonBoy <thatlemon@gmail.com>
2020-03-08 13:45:16
stage1: Remove fflush on file open for reading
On NetBSD this caused the libuserland compilation to fail. Closes #3719
1 parent dc44fe0
Changed files (1)
src
src/os.cpp
@@ -1161,9 +1161,6 @@ Error os_update_file(Buf *src_path, Buf *dst_path) {
         fclose(dst_libc_file);
         return err;
     }
-    if (fflush(src_libc_file) == -1) {
-        return ErrorUnexpected;
-    }
     if (fflush(dst_libc_file) == -1) {
         return ErrorUnexpected;
     }