Use nssm_imagepath().
authorIain Patterson <me@iain.cx>
Mon, 2 Mar 2015 11:03:59 +0000 (11:03 +0000)
committerIain Patterson <me@iain.cx>
Mon, 2 Mar 2015 11:08:00 +0000 (11:08 +0000)
We were calling GetModuleFileName() in a number of places.  Use
nssm_imagepath() instead.

Ensure that a quoted path is used for the service image path when
creating the service, thus avoiding a theoretical security vulnerability
whereby the service manager could be tricked into launching the wrong
program.

When setting the path to NSSM in the environment for event hooks we
still use the unquoted path, as environment variables are typically
unquoted.

Thanks Gerald Haider.


No differences found