<div dir="ltr">I think it will become more fragile because (despite over a decade of trying to standardize these things), not all the distros put their binaries in the same places -- for example, I have seen brctl live in /sbin, /usr/sbin, and /usr/bin. It is much easier to sanity-check (or allow for customization of) $PATH in one place (hi there Oslo devs!) and rely on having a sane path everywhere else than to hardcode all the exernal binary calls and have to deal with the inevitable bugs that will arise from utilities living in different directories in different distros.  Of os.execvp and friends randomly decide to stop using PATH (and only PATH) to find executables we are in much deeper trouble anyways.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 14, 2013 at 8:04 AM, Stanislav Pugachev <span dir="ltr"><<a href="mailto:spugachev@griddynamics.com" target="_blank">spugachev@griddynamics.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Why do you think code will become more fragile? It will be more defended.<br>How $PATH checking will help if someone will change the binary?<div>
And it is not so much work to do here.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, May 14, 2013 at 3:36 PM, Victor Lowther <span dir="ltr"><<a href="mailto:victor.lowther@gmail.com" target="_blank">victor.lowther@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Err, sounds like a lot of work to make the code more fragile.  If you want to be paranoid about launching the right command, do it by sanity-checking $PATH, not by hardcoding the path of all the executables you call.</div>


<div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Tue, May 14, 2013 at 5:56 AM, Stanislav Pugachev <span dir="ltr"><<a href="mailto:spugachev@griddynamics.com" target="_blank">spugachev@griddynamics.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hi, <br>I've added a blueprint <a href="https://blueprints.launchpad.net/hacking/+spec/absolute-paths-of-os-binaries" target="_blank">https://blueprints.launchpad.net/hacking/+spec/absolute-paths-of-os-binaries</a><br>


Please, take a look and let's discuss it if it makes sense.<br>
Thank you<br>Stas.<br><br><br>
<br></div></div>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>