dd: Only sync once - ubase - suckless linux base utils
HTML git clone git://git.suckless.org/ubase
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 8fe02392edbb05213e114ded8e371fd7dcbe94a7
DIR parent 1c2006fd2ca96237e321cd6a588ec13d12f195c2
HTML Author: sin <sin@2f30.org>
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(-)
---
DIR 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;
}