dd: Only sync once

This commit is contained in:
sin 2015-02-02 22:32:03 +00:00
parent 1c2006fd2c
commit 8fe02392ed

2
dd.c
View File

@ -292,6 +292,6 @@ main(int argc, char *argv[])
print_stat(&config); print_stat(&config);
if (config.nosync == 0) if (config.nosync == 0)
sync(); sync(); sync();
return config.saved_errno; return config.saved_errno;
} }