mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-24 12:36:18 +00:00
47c07c60ba
* Latest 4.3 changes poorly merged * Build fixes * Squash? * Fix ppsspp on switch * Fix video recording, add base stuff for nvv4l2 decoder/encoder, but leave disabled for now * Clean up left over files * Switch: Dont build xpadneo driver, but install configs * FFMpeg: Add back L4T decoder Patches
35 lines
884 B
Diff
35 lines
884 B
Diff
From 0a61b6174d86fd0300be7cd4fa0b47ff12735958 Mon Sep 17 00:00:00 2001
|
|
From: MilhouseVH <milhouseVH.github@nmacleod.com>
|
|
Date: Tue, 8 Aug 2017 22:25:03 +0100
|
|
Subject: [PATCH] Revert "dd: call fsync() only once before exiting if
|
|
conv=fsync is specified"
|
|
|
|
This reverts commit dba0dc1999bb1e8bfe64607e2a9385cda361fcb7.
|
|
---
|
|
coreutils/dd.c | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/coreutils/dd.c b/coreutils/dd.c
|
|
index d302f35..bf0c4ab 100644
|
|
--- a/coreutils/dd.c
|
|
+++ b/coreutils/dd.c
|
|
@@ -531,11 +531,11 @@ int dd_main(int argc UNUSED_PARAM, char **argv)
|
|
if (write_and_stats(ibuf, n, obs, outfile))
|
|
goto out_status;
|
|
}
|
|
- }
|
|
|
|
- if (G.flags & FLAG_FSYNC) {
|
|
- if (fsync(ofd) < 0)
|
|
- goto die_outfile;
|
|
+ if (G.flags & FLAG_FSYNC) {
|
|
+ if (fsync(ofd) < 0)
|
|
+ goto die_outfile;
|
|
+ }
|
|
}
|
|
|
|
if (ENABLE_FEATURE_DD_IBS_OBS && oc) {
|
|
--
|
|
2.7.4
|
|
|