From 79af7395bf1c95b19e62e26d9f8525a1d6bc79b6 Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Sun, 10 Jan 2016 13:27:17 +0100 Subject: fiasco: In simulate mode do not close invalid not open fd --- src/fiasco.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/fiasco.c') diff --git a/src/fiasco.c b/src/fiasco.c index 79bde74..0a3f509 100644 --- a/src/fiasco.c +++ b/src/fiasco.c @@ -443,7 +443,9 @@ int fiasco_write_to_file(struct fiasco * fiasco, const char * file) { } - close(fd); + if ( ! simulate ) + close(fd); + printf("\nDone\n\n"); return 0; -- cgit v1.2.3