From: Enrico Forestieri Date: Sat, 29 Dec 2018 19:11:56 +0000 (+0100) Subject: Fix bug #4269 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f6f0704777b4578f1f49f5ce25bf27e715b3a399;p=features.git Fix bug #4269 Call gunzip with quoted filenames as they may contain spaces or other special characters. --- diff --git a/src/support/filetools.cpp b/src/support/filetools.cpp index 60bd72f905..028eedf91a 100644 --- a/src/support/filetools.cpp +++ b/src/support/filetools.cpp @@ -933,9 +933,9 @@ FileName const unzipFile(FileName const & zipped_file, string const & unzipped_f unzippedFileName(zipped_file.toFilesystemEncoding()) : unzipped_file); // Run gunzip - string const command = "gunzip -c " + - zipped_file.toFilesystemEncoding() + " > " + - tempfile.toFilesystemEncoding(); + string const command = "gunzip -c \"" + + zipped_file.toFilesystemEncoding() + "\" > \"" + + tempfile.toFilesystemEncoding() + "\""; Systemcall one; one.startscript(Systemcall::Wait, command); // test that command was executed successfully (anon)