From bab66235b94643e10dfc58db38c8ea4b8be46c37 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Sun, 8 Mar 2020 13:45:16 +0100 Subject: stage1: Remove fflush on file open for reading On NetBSD this caused the libuserland compilation to fail. Closes #3719 --- src/os.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/os.cpp') diff --git a/src/os.cpp b/src/os.cpp index 351b61cd66..872c0270f1 100644 --- a/src/os.cpp +++ b/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; } -- cgit v1.2.3