mimetype needs to come first, in opendocument spec
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user