mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Increase the uniqueness of the temp directories
Now, the temporary directories are composed of the PID + 8 random
characters. This used to be the PID + 2 random characters.
See also 327f7ed90d
.
This commit is contained in:
parent
327f7ed90d
commit
762c4eca57
@ -443,7 +443,7 @@ static string createTempFile(QString const & mask)
|
|||||||
// same file again. To make this safe the QTemporaryFile object
|
// same file again. To make this safe the QTemporaryFile object
|
||||||
// needs to be kept for the whole life time of the temp file name.
|
// needs to be kept for the whole life time of the temp file name.
|
||||||
// This can be achieved by using the TempFile class.
|
// This can be achieved by using the TempFile class.
|
||||||
QTemporaryFile qt_tmp(mask);
|
QTemporaryFile qt_tmp(mask + ".XXXXXXXXXXXX");
|
||||||
if (qt_tmp.open()) {
|
if (qt_tmp.open()) {
|
||||||
string const temp_file = fromqstr(qt_tmp.fileName());
|
string const temp_file = fromqstr(qt_tmp.fileName());
|
||||||
LYXERR(Debug::FILES, "Temporary file `" << temp_file << "' created.");
|
LYXERR(Debug::FILES, "Temporary file `" << temp_file << "' created.");
|
||||||
|
Loading…
Reference in New Issue
Block a user