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) {
|
if ((child_pid = fork()) == 0) {
|
||||||
/* you are the child */
|
/* you are the child */
|
||||||
char outputRealPath[FILENAME_MAX];
|
char outputRealPath[FILENAME_MAX];
|
||||||
char* const args[] = { "zip", "-r", outputRealPath, ".", NULL };
|
char* const args[] = { "zip", "-r", outputRealPath, "mimetype", ".", NULL };
|
||||||
realpath(outputFilename, outputRealPath);
|
realpath(outputFilename, outputRealPath);
|
||||||
chdir(tempDir);
|
chdir(tempDir);
|
||||||
freopen("/dev/null", "w", stdout);
|
freopen("/dev/null", "w", stdout);
|
||||||
|
|||||||
Reference in New Issue
Block a user