scripts: bundle-libraries: runas: also unset LD_PRELOAD
authorYousong Zhou <yszhou4tech@gmail.com>
Thu, 2 Jan 2020 02:29:13 +0000 (10:29 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Fri, 25 Sep 2020 13:17:49 +0000 (21:17 +0800)
This is needed for situations like after chroot where the runas.so can
not be found

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
scripts/bundle-libraries.sh

index 9efcbbd0b20e9eccaba51705f3b7776cd91efc70..e110ef309083529d786bb779e95dc2924bf8c2dc 100755 (executable)
@@ -84,6 +84,7 @@ _runas_so() {
                                unsetenv("RUNAS_ARG0");
                        }
 
+                       unsetenv("LD_PRELOAD");
                        return 0;
                }