dd: Only sync once - ubase - suckless linux base utils | |
git clone git://git.suckless.org/ubase | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 8fe02392edbb05213e114ded8e371fd7dcbe94a7 | |
parent 1c2006fd2ca96237e321cd6a588ec13d12f195c2 | |
Author: sin <[email protected]> | |
Date: Mon, 2 Feb 2015 22:32:03 +0000 | |
dd: Only sync once | |
Diffstat: | |
M dd.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/dd.c b/dd.c | |
@@ -292,6 +292,6 @@ main(int argc, char *argv[]) | |
print_stat(&config); | |
if (config.nosync == 0) | |
- sync(); sync(); | |
+ sync(); | |
return config.saved_errno; | |
} |