From 3b94588d25723da2e0755cdfb80a6cdec6c9dcb9 Mon Sep 17 00:00:00 2001 From: David Baer Date: Sat, 8 Sep 2018 22:16:22 -0400 Subject: [PATCH] mimetype needs to come first, in opendocument spec --- src/odt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/odt.c b/src/odt.c index cda5ece..60fe465 100644 --- a/src/odt.c +++ b/src/odt.c @@ -73,7 +73,7 @@ createOutputDocument(const char* const outputFilename, const char* const tempDir if ((child_pid = fork()) == 0) { /* you are the child */ char outputRealPath[FILENAME_MAX]; - char* const args[] = { "zip", "-r", outputRealPath, ".", NULL }; + char* const args[] = { "zip", "-r", outputRealPath, "mimetype", ".", NULL }; realpath(outputFilename, outputRealPath); chdir(tempDir); freopen("/dev/null", "w", stdout);