[PATCH] archive handler: add sync

13 views
Skip to first unread message

Ayoub Zaki

unread,
Nov 13, 2022, 8:35:59 AM11/13/22
to swup...@googlegroups.com, Ayoub Zaki
libarchive makes usage of buffered files, add a sync() call after installing the archive file(s).

Signed-off-by: Ayoub Zaki <ayoub...@embetrix.com>
---
handlers/archive_handler.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/handlers/archive_handler.c b/handlers/archive_handler.c
index e3a1463..0ca22ca 100644
--- a/handlers/archive_handler.c
+++ b/handlers/archive_handler.c
@@ -380,6 +380,7 @@ out:
}
}

+ sync();
free(DATADST_DIR);
free(FIFO);

--
2.34.1

Stefano Babic

unread,
Nov 13, 2022, 9:42:54 AM11/13/22
to Ayoub Zaki, swup...@googlegroups.com
Hi Ayoub,
Applied to -master, thanks !

Best regards,
Stefano Babic
Reply all
Reply to author
Forward
0 new messages