Hi folks,
there is a tmp race condition with root privilege at least on Unix systems
which we should fix:
SysDepUnix.cpp:SysGetTmpFile():
SysSNPrintf(pszFileName, SYS_MAX_PATH - 1, "/tmp/msrv%lx.%lx.tmp", ulThreadID,
ulFileID);
This call gives you a very predictive file name that is created in /tmp with
root privileges. We all do not want that.
As I have seen that xmail creates a tmp directory in MailRoot, why can't we
use that instead as the destination returned by SysGetTmpFile?
As I have no idea when this tmp directory is created and how it is managed,
can someone more knowledgeable look into that?
If the tmp dir in MailRoot does not work, can we use mktemp() or something
like that?
Thanks
Stephan
--
| Cui bono? |
_______________________________________________
xmail mailing list
[email protected]
http://xmailserver.org/mailman/listinfo/xmail