diff options
-rw-r--r-- | ChangeLog.txt | 5 | ||||
-rw-r--r-- | pseudo_util.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index a2d30e9..8ba1ffa 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,8 @@ +2017-04-13: + * (seebs) don't unset LD_PRELOAD or the like, because if you + do that, bash can segfault because it "knows" how many + fields are in environ. + 2017-02-24: * (seebs) import posix_acl_default fix from Anton Gerasimov <anton@advancedtelematic.com> diff --git a/pseudo_util.c b/pseudo_util.c index 172990b..6a1fac2 100644 --- a/pseudo_util.c +++ b/pseudo_util.c @@ -844,7 +844,7 @@ void pseudo_dropenv() { if (ld_preload && strlen(ld_preload)) { SETENV(PRELINK_LIBRARIES, ld_preload, 1); } else { - UNSETENV(PRELINK_LIBRARIES); + SETENV(PRELINK_LIBRARIES, "", 1); } } } |