summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-03-02 23:11:57 +0100
committerMichael Adam <obnox@samba.org>2010-03-02 23:39:21 +0100
commitcfa5792880a1eb729cb37fd90de1c273dc5c056f (patch)
tree59cc42f67d6aeed769169db888b91370cbdb5c0a /src
parentf640c6fbb11ed233d93580e23966dd8bdc5ab88f (diff)
change the default log file location to "@LOCALSTATEDIR@/log/tinyproxy/tinyproxy.log"
i.e. add a tinyproxy subdirectory. This is meant to ease running tinyproxy as non-root user the subdirectory can be used to give the tinyproxy user write permission. Michael
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 1d63d92..0190db4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -345,7 +345,7 @@ static void initialize_config_defaults (struct config_s *conf)
conf->errorpages = NULL;
conf->stathost = safestrdup (TINYPROXY_STATHOST);
conf->idletimeout = MAX_IDLE_TIME;
- conf->logf_name = safestrdup (LOCALSTATEDIR "/log/tinyproxy.log");
+ conf->logf_name = safestrdup (LOCALSTATEDIR "/log/tinyproxy/tinyproxy.log");
conf->pidpath = safestrdup (LOCALSTATEDIR "/run/tinyproxy.pid");
}