|
Message-ID: <alpine.LNX.2.00.1408311405570.5292@monopod.intra.ispras.ru> Date: Sun, 31 Aug 2014 14:25:18 +0400 (MSK) From: Alexander Monakov <amonakov@...ras.ru> To: musl@...ts.openwall.com Subject: Retention of LD_LIBRARY_PATH (related to setproctitle discussion on IRC) The dynamic loader in musl retains a pointer to LD_LIBRARY_PATH from the initial environment, which is exposed to the application via 'char **environ'. Changes to environ may cause subsequent calls to dlopen to use different search paths, but modifications via setenv and putenv do not have such effect. dlopen(3) in Linux man pages mentions specifically that the value of LD_LIBRARY_PATH from program start up is used. Glibc stores a duplicate of the initial value, and modifications to the environment do not affect search paths for dlopen. Alexander
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.