forked from enlightenment/efl
abort if cannot create /tmp file for cpp (epp).
one user complained that if /tmp wasn't writable (...?) it would keep going but would abort with a message that his #define were not being replaced, which is strange. at the end the reason was it did not abort on mkstemp() failure. SVN revision: 78408
This commit is contained in:
parent
26dbb19516
commit
0647d5d54c
|
@ -787,6 +787,10 @@ compile(void)
|
|||
else *p = 0;
|
||||
snprintf(tmpn, PATH_MAX, "%s/edje_cc.edc-tmp-XXXXXX", tmp_dir);
|
||||
fd = mkstemp(tmpn);
|
||||
if (fd < 0)
|
||||
error_and_abort(ef, "Unable to open temp file \"%s\" for pre-processor.",
|
||||
sc->tmpn);
|
||||
|
||||
if (fd >= 0)
|
||||
{
|
||||
int ret;
|
||||
|
|
Loading…
Reference in New Issue