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:
Gustavo Sverzut Barbieri 2012-10-24 19:04:01 +00:00
parent 26dbb19516
commit 0647d5d54c
1 changed files with 4 additions and 0 deletions

View File

@ -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.",
if (fd >= 0)
int ret;