diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2009-09-15 09:55:25 -0700 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2009-09-16 06:33:53 -0700 |
commit | be3937d00ee600a5bba877ede08fdddd6f2fcd0a (patch) | |
tree | fed5b76fe2e39a8ced1938f78588c1c768138e10 | |
parent | cca982f71d0623749d13f99c2ef27b9e49c7101b (diff) |
tcc: Always create results directory
The results directory was only being created by tcc if it was not being
supplied by -i.
-rw-r--r-- | src/tet3/tcc/resdir.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tet3/tcc/resdir.c b/src/tet3/tcc/resdir.c index 18f82659..758db606 100644 --- a/src/tet3/tcc/resdir.c +++ b/src/tet3/tcc/resdir.c @@ -91,8 +91,9 @@ char *iopt, *cwd; */ if (iopt && *iopt) { fullpath(cwd, iopt, resdir, sizeof resdir, 0); - if (tet_eaccess(resdir, 02) < 0) - fatal(errno, "can't access", resdir); + errno = 0; + if (tet_mkalldirs(resdir) != 0 && errno != EEXIST) + tcc_exit(1); } else { fullpath(tet_tsroot, results_dir, resroot, sizeof resroot, 0); |