From 6beda1bcee4396ceced99b8a8c5627940f507ace Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 20 Dec 2020 23:09:31 +0000 Subject: internals: error tracing: record the not-found path upon ENOENT as needed. --- src/helper/slbt_archive_import.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/helper/slbt_archive_import.c') 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]); -- cgit v1.2.3