If the specified path has many directories then it will take a long time and you can check this from the startup time of your application. As a result this will cause the whole system to slow down.
This will be tough to debug the latter, especially. The best solution is the less you use it, the less trouble you will face. The problem in this way is that the executable space that carries this information i. Simply say no! Try to handle the problem in another way, for example by writing a wrapper script, or tell the vendor to rectify it.
Is this a risk? How can we disable writing to this environment variable for regular user? Improve this question. Sinoosh Sinoosh 1, 1 1 gold badge 15 15 silver badges 32 32 bronze badges. Thanks Byte Commander for editing. Add a comment. Active Oldest Votes. Improve this answer. Thanks a lot! Sinoosh I can't really think of a reason why it should be a security issue if an untrusted application knows the location of my system libraries.
If everything is configured correctly and you have not messed with permissions, they should be owned by root and not writeable by anyone else, which means there is no risk that they get infected or modified in any way unless you run the untrusted application as root, but you won't do this, right?
Sinoosh see xahlee. Byte Commander , I am agree with you not with Author: — Sinoosh. This answer is not entirely correct. Show 6 more comments. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. When I try to run my test program which depends on libc. Executables and DSOs created by gcc depend on many symbols in libc.
Your own libc. Regarding just replacing printf in libc. There are many docs and resources on this topic, for example this question. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Quality code is the easiest to delete. Featured on Meta. Now live: A fully responsive profile.
0コメント