Use PATHEXT when checking for the presence of scripts on Windows.
authorGuus Sliepen <guus@tinc-vpn.org>
Fri, 23 Aug 2013 17:24:36 +0000 (19:24 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Fri, 23 Aug 2013 19:23:46 +0000 (21:23 +0200)
It seems like a lot of overhead to call access() for every possible extension
defined in PATHEXT, but apparently this is what Windows does itself too. At
least this avoids calling system() when the script one is looking for does not
exist at all.

Since the tinc utility also needs to call scripts, execute_script() is now
split off into its own source file.


No differences found