]> git.meshlink.io Git - meshlink/commitdiff
Moving pid to /tmp/ so we can run the program without root privileges
authorSaverio Proto <zioproto@gmail.com>
Mon, 7 Apr 2014 16:48:07 +0000 (18:48 +0200)
committerSaverio Proto <zioproto@gmail.com>
Mon, 7 Apr 2014 16:48:07 +0000 (18:48 +0200)
src/names.c

index 37708f81169cc77d4c093cbee10c04c44b8b8d4f..138c3cc08cd5bc4ad98ae5f609e51dc158b2bb8f 100644 (file)
@@ -77,7 +77,7 @@ void make_names(void) {
                xasprintf(&logfilename, LOCALSTATEDIR SLASH "log" SLASH "%s.log", identname);
 
        if(!pidfilename)
-               xasprintf(&pidfilename, LOCALSTATEDIR SLASH "run" SLASH "%s.pid", identname);
+               xasprintf(&pidfilename, SLASH "tmp" SLASH "%s.pid", identname);
 
        if(!unixsocketname) {
                int len = strlen(pidfilename);