diff options
author | midipix <writeonce@midipix.org> | 2020-12-20 23:09:31 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2020-12-20 23:09:31 +0000 |
commit | 6beda1bcee4396ceced99b8a8c5627940f507ace (patch) | |
tree | 9f4d796da9415af666aa8485b653e21a6cb4d6e2 /src/internal/slibtool_lconf_impl.c | |
parent | 56f236d413d8aa5e0c875f0926f0c6dd9fb1d7d0 (diff) | |
download | slibtool-6beda1bcee4396ceced99b8a8c5627940f507ace.tar.bz2 slibtool-6beda1bcee4396ceced99b8a8c5627940f507ace.tar.xz |
internals: error tracing: record the not-found path upon ENOENT as needed.
Diffstat (limited to 'src/internal/slibtool_lconf_impl.c')
-rw-r--r-- | src/internal/slibtool_lconf_impl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/internal/slibtool_lconf_impl.c b/src/internal/slibtool_lconf_impl.c index 6b55c9f..ad335f1 100644 --- a/src/internal/slibtool_lconf_impl.c +++ b/src/internal/slibtool_lconf_impl.c @@ -51,7 +51,7 @@ static int slbt_lconf_open( : fdlconf; if (fstatat(fdlconfdir,".",&stcwd,0) < 0) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); lconf = lconf ? lconf : "libtool"; fdlconf = openat(fdlconfdir,lconf,O_RDONLY,0); @@ -62,11 +62,11 @@ static int slbt_lconf_open( slbt_lconf_close(fdcwd,fdlconfdir); if (fdparent < 0) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); if (fstat(fdparent,&stparent) < 0) { close(fdparent); - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); } if (stparent.st_dev != stcwd.st_dev) { @@ -115,7 +115,7 @@ int slbt_get_lconf_flags( /* map relative libtool script */ if (fstat(fdlconf,&st) < 0) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); addr = mmap( 0,st.st_size, |