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/logic/slbt_exec_uninstall.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/logic/slbt_exec_uninstall.c') diff --git a/src/logic/slbt_exec_uninstall.c b/src/logic/slbt_exec_uninstall.c index 182bc8d..c0aa87f 100644 --- a/src/logic/slbt_exec_uninstall.c +++ b/src/logic/slbt_exec_uninstall.c @@ -82,12 +82,12 @@ static int slbt_exec_uninstall_fs_entry( return 0; else - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,path); } /* remove file or symlink entry */ if (unlink(path)) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,path); /* remove empty containing directory? */ if (flags & SLBT_UNINSTALL_RMDIR) { @@ -100,7 +100,7 @@ static int slbt_exec_uninstall_fs_entry( *slash = 0; if (rmdir(dpath)) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,dpath); } return 0; -- cgit v1.2.3