summaryrefslogtreecommitdiff
path: root/src/logic/slbt_exec_compile.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-12-20 23:09:31 +0000
committermidipix <writeonce@midipix.org>2020-12-20 23:09:31 +0000
commit6beda1bcee4396ceced99b8a8c5627940f507ace (patch)
tree9f4d796da9415af666aa8485b653e21a6cb4d6e2 /src/logic/slbt_exec_compile.c
parent56f236d413d8aa5e0c875f0926f0c6dd9fb1d7d0 (diff)
downloadslibtool-6beda1bcee4396ceced99b8a8c5627940f507ace.tar.bz2
slibtool-6beda1bcee4396ceced99b8a8c5627940f507ace.tar.xz
internals: error tracing: record the not-found path upon ENOENT as needed.
Diffstat (limited to 'src/logic/slbt_exec_compile.c')
-rw-r--r--src/logic/slbt_exec_compile.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/logic/slbt_exec_compile.c b/src/logic/slbt_exec_compile.c
index 3ccea3c..dca6e1e 100644
--- a/src/logic/slbt_exec_compile.c
+++ b/src/logic/slbt_exec_compile.c
@@ -27,7 +27,7 @@ static int slbt_exec_compile_remove_file(
if (!(unlink(target)) || (errno == ENOENT))
return 0;
- return SLBT_SYSTEM_ERROR(dctx);
+ return SLBT_SYSTEM_ERROR(dctx,0);
}
static int slbt_exec_compile_finalize_argument_vector(
@@ -59,7 +59,7 @@ static int slbt_exec_compile_finalize_argument_vector(
sargvbuf = 0;
} else if (!(sargvbuf = calloc(parg-base+1,sizeof(char *)))) {
- return SLBT_SYSTEM_ERROR(dctx);
+ return SLBT_SYSTEM_ERROR(dctx,0);
} else {
aargv = sargvbuf;
@@ -156,7 +156,7 @@ int slbt_exec_compile(
if (cctx->drvflags & SLBT_DRIVER_SHARED)
if (slbt_mkdir(dctx,ectx->ldirname)) {
slbt_free_exec_ctx(actx);
- return SLBT_SYSTEM_ERROR(dctx);
+ return SLBT_SYSTEM_ERROR(dctx,ectx->ldirname);
}
/* compile mode */
@@ -200,7 +200,7 @@ int slbt_exec_compile(
if (((ret = slbt_spawn(ectx,true)) < 0) || ectx->exitcode) {
slbt_free_exec_ctx(actx);
- return SLBT_SYSTEM_ERROR(dctx);
+ return SLBT_SYSTEM_ERROR(dctx,0);
}
if (cctx->drvflags & SLBT_DRIVER_STATIC)
@@ -231,7 +231,7 @@ int slbt_exec_compile(
if (((ret = slbt_spawn(ectx,true)) < 0) || ectx->exitcode) {
slbt_free_exec_ctx(actx);
- return SLBT_SYSTEM_ERROR(dctx);
+ return SLBT_SYSTEM_ERROR(dctx,0);
}
}