Fix "tinc start" on Windows when the path contains spaces.
authorEtienne Dechamps <etienne@edechamps.fr>
Sat, 12 Jul 2014 17:37:56 +0000 (18:37 +0100)
committerEtienne Dechamps <etienne@edechamps.fr>
Sat, 12 Jul 2014 17:41:51 +0000 (18:41 +0100)
commitb22499668a7aa63c619cb8fa8535282a38841ce9
tree64b3dbcc58a0b2e1dbbd8983534b80d079d4b925
parent5ffdff685a0e7d25f7c016f3a6cd89bb82fed71c
Fix "tinc start" on Windows when the path contains spaces.

When invoking "tinc start" with spaces in the path, the following
happens:

    > "c:\Program Files (x86)\tinc\tinc.exe" start
    c:\Program: unrecognized argument 'Files'
    Try `c:\Program --help' for more information.

This is caused by inconsistent handling of command line strings between
execvp() and the spawned process' CRT, as documented on MSDN:
http://msdn.microsoft.com/library/431x4c1w.aspx
src/tincctl.c