aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.txt2
-rw-r--r--pseudo_wrappers.c20
2 files changed, 6 insertions, 16 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 033fdcf..165faa8 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -3,6 +3,8 @@
it's actually probably right.
* (<zboszor@pr.hu>) handle extremely long group names
in getgrnam and similar functions.
+ * (seebs) drop the diagnostic for a missing "real" function
+ as it turns out to be counterproductive at best.
2017-12-22:
* (seebs) handle the pathological case of LINKAT with
diff --git a/pseudo_wrappers.c b/pseudo_wrappers.c
index 12bc541..ad3a8c0 100644
--- a/pseudo_wrappers.c
+++ b/pseudo_wrappers.c
@@ -131,7 +131,6 @@ static void
pseudo_init_one_wrapper(pseudo_function *func) {
int (*f)(void) = (int (*)(void)) NULL;
- char *e;
if (*func->real != NULL) {
/* already initialized */
return;
@@ -147,22 +146,11 @@ pseudo_init_one_wrapper(pseudo_function *func) {
f = dlsym(RTLD_NEXT, func->name);
if (f) {
*func->real = f;
- } else {
-#ifdef PSEUDO_NO_REAL_AT_FUNCTIONS
- char *s = func->name;
- s += strlen(s) - 2;
- /* *at() don't have to exist */
- if (!strcmp(s, "at")) {
- return;
- }
-#endif
- e = dlerror();
- if (e != NULL) {
- pseudo_diag("No real function for %s: %s\n", func->name, e);
- } else {
- pseudo_diag("No real function for %s, but dlerror NULL.\n", func->name);
- }
}
+ /* it turns out that in some cases, we get apparently-harmless
+ * errors if a function is missing, and that printing output
+ * for these seems unhelpful. so we no longer do that.
+ */
}
void