From: Saverio Proto Date: Mon, 7 Apr 2014 16:48:07 +0000 (+0200) Subject: Moving pid to /tmp/ so we can run the program without root privileges X-Git-Url: http://git.meshlink.io/?p=meshlink;a=commitdiff_plain;h=7b0d9d11fd04546e8741a7930e20057d39a82d5b Moving pid to /tmp/ so we can run the program without root privileges --- diff --git a/src/names.c b/src/names.c index 37708f81..138c3cc0 100644 --- a/src/names.c +++ b/src/names.c @@ -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);