mimetype needs to come first, in opendocument spec

This commit is contained in:
David Baer
2018-09-08 22:16:22 -04:00
parent 321731f51f
commit 3b94588d25

View File

@@ -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);