aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-10-24 19:04:01 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-10-24 19:04:01 +0000
commit0647d5d54ce6678696fe3ce992f7e2187114dfa7 (patch)
tree13d66be30a9224cd33450563639b55eecffb9637
parent26dbb195169db6bd3660a99b7cba972470852f4a (diff)
downloadefl-0647d5d54ce6678696fe3ce992f7e2187114dfa7.tar.gz
efl-0647d5d54ce6678696fe3ce992f7e2187114dfa7.tar.xz
efl-0647d5d54ce6678696fe3ce992f7e2187114dfa7.zip
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
-rw-r--r--legacy/edje/src/bin/edje_cc_parse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/legacy/edje/src/bin/edje_cc_parse.c b/legacy/edje/src/bin/edje_cc_parse.c
index 9695700b7..3c99aa061 100644
--- a/legacy/edje/src/bin/edje_cc_parse.c
+++ b/legacy/edje/src/bin/edje_cc_parse.c
@@ -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;