Signed-off-by: Mattias Andrée <[email protected]>
---
 shred.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/shred.c b/shred.c
index b2375f6..e8d71f4 100644
--- a/shred.c
+++ b/shred.c
@@ -100,6 +100,10 @@ do_shred_content(int dest, char *destpath, int src, const 
char *srcpath, off_t s
                fprintf(logfp, "\033[A\033[K");
        }
 
+       fprintf(logfp, "    Synchronising\n");
+       fsync(dest);
+       fprintf(logfp, "\033[A\033[K");
+
        lseek(dest, 0, SEEK_SET);
 }
 
-- 
2.7.4


Reply via email to