summaryrefslogtreecommitdiff
path: root/stdio-common/bug5.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/bug5.c')
-rw-r--r--stdio-common/bug5.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/stdio-common/bug5.c b/stdio-common/bug5.c
index 59fb6bb9d9..8c3d0e3bc7 100644
--- a/stdio-common/bug5.c
+++ b/stdio-common/bug5.c
@@ -56,6 +56,10 @@ main (void)
puts ("There should be no further output from this test.");
fflush (stdout);
+ /* We must remove this entry to assure the `cmp' binary does not use
+ the perhaps incompatible new shared libraries. */
+ unsetenv ("LD_LIBRARY_PATH");
+
asprintf (&printbuf, "cmp %s %s", inname, outname);
result = system (printbuf);
remove (inname);