Skip to content
Snippets Groups Projects
Commit 37215fea authored by Simon McVittie's avatar Simon McVittie
Browse files

ld_lib_open: Propagate error from open() correctly


In practice most callers ignored it anyway, and the only caller that
would not ignore it would usually have failed with an error from
realpath() already.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 2ae70a65
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
......@@ -365,6 +365,11 @@ ld_lib_open (ld_libs *ldlibs, const char *name, int i, int *code, char **message
}
else
{
int errsv = errno;
_capsule_set_error( code, message, errsv,
"Cannot open \"%s\": %s",
ldlibs->needed[i].path, strerror( errsv ) );
return 0;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment