分类: LINUX
2013-01-19 17:19:21
Background: mv /lib/libc.so.6 /lib/libc.so.6.bak
Environment: RHEL 5 32bit
LD_PRELOAD: load the library before the command is run
Step:
1. LD_PRELOAD=/lib/libc.so.6.bak ln -s /lib/libc-2.5.so /lib/libc.so.6
2. LD_PRELOAD= #set LD_PRELOAD variable is empty