]> git.meshlink.io Git - meshlink/blobdiff - src/process.c
Let tincctl parse and format dumps.
[meshlink] / src / process.c
index aa6dc5609857ed64871d4f9f8028c7aed4f48472..0e33f2643b68bee71b2159088995d04824408684 100644 (file)
@@ -212,7 +212,7 @@ bool detach(void) {
                }
 #else
                if(!statushandle)
-                       exit(install_service());
+                       exit(!install_service());
 #endif
        }
 
@@ -231,9 +231,9 @@ bool execute_script(const char *name, char **envp) {
        int i;
 
 #ifndef HAVE_MINGW
-       len = xasprintf(&scriptname, "\"%s/%s\"", confbase, name);
+       len = xasprintf(&scriptname, "\"%s" SLASH "%s\"", confbase, name);
 #else
-       len = xasprintf(&scriptname, "\"%s/%s.bat\"", confbase, name);
+       len = xasprintf(&scriptname, "\"%s" SLASH "%s.bat\"", confbase, name);
 #endif
        if(len < 0)
                return false;