summaryrefslogtreecommitdiffhomepage
path: root/src/helper
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/helper
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/helper')
-rw-r--r--src/helper/slbt_archive_import.c6
-rw-r--r--src/helper/slbt_copy_file.c3
2 files changed, 5 insertions, 4 deletions
diff --git a/src/helper/slbt_archive_import.c b/src/helper/slbt_archive_import.c
index 84bef92..ae8821b 100644
--- a/src/helper/slbt_archive_import.c
+++ b/src/helper/slbt_archive_import.c
@@ -103,12 +103,12 @@ int slbt_archive_import(
/* fork */
if (pipe(fd))
- return SLBT_SYSTEM_ERROR(dctx);
+ return SLBT_SYSTEM_ERROR(dctx,0);
if ((pid = fork()) < 0) {
close(fd[0]);
close(fd[1]);
- return SLBT_SYSTEM_ERROR(dctx);
+ return SLBT_SYSTEM_ERROR(dctx,0);
}
/* child */
@@ -131,7 +131,7 @@ int slbt_archive_import(
if (slbt_dprintf(fd[1],fmt,dst,src) < 0) {
close(fd[1]);
- return SLBT_SYSTEM_ERROR(dctx);
+ return SLBT_SYSTEM_ERROR(dctx,0);
}
close(fd[1]);
diff --git a/src/helper/slbt_copy_file.c b/src/helper/slbt_copy_file.c
index c74ffcc..e9abee5 100644
--- a/src/helper/slbt_copy_file.c
+++ b/src/helper/slbt_copy_file.c
@@ -1,3 +1,4 @@
+
/*******************************************************************/
/* slibtool: a skinny libtool implementation, written in C */
/* Copyright (C) 2016--2018 Z. Gilboa */
@@ -55,7 +56,7 @@ int slbt_copy_file(
/* dlltool spawn */
ret = ((slbt_spawn(ectx,true) < 0) || ectx->exitcode)
- ? SLBT_SYSTEM_ERROR(dctx) : 0;
+ ? SLBT_SYSTEM_ERROR(dctx,0) : 0;
ectx->argv = oargv;
ectx->program = oprogram;