Applied, thanks
On Tue, Mar 14, 2017 at 5:44 PM, Rostislav Skudnov <[email protected]> wrote: > Signed-off-by: Rostislav Skudnov <[email protected]> > --- > coreutils/dd.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/coreutils/dd.c b/coreutils/dd.c > index 5e68087..d89c0ae 100644 > --- a/coreutils/dd.c > +++ b/coreutils/dd.c > @@ -532,17 +532,17 @@ 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 (ENABLE_FEATURE_DD_IBS_OBS && oc) { > if (write_and_stats(obuf, oc, obs, outfile)) > goto out_status; > } > + > + if (G.flags & FLAG_FSYNC) { > + if (fsync(ofd) < 0) > + goto die_outfile; > + } > if (close(ifd) < 0) { > die_infile: > bb_simple_perror_msg_and_die(infile); > -- > 2.1.4 > > _______________________________________________ > busybox mailing list > [email protected] > http://lists.busybox.net/mailman/listinfo/busybox _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
