about summary refs log tree commit diff stats
path: root/res
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-05-16 18:35:22 +0200
committerbptato <nincsnevem662@gmail.com>2024-05-16 18:58:13 +0200
commited84d7223fd8945705dcedd204fee137b249c524 (patch)
tree3539b9ccb5af2de6ad66e6d3362bff83abc1df88 /res
parent87a5c636eb203cd066a620129f93c30b02245ad9 (diff)
downloadchawan-ed84d7223fd8945705dcedd204fee137b249c524.tar.gz
config: separate tmp dir for sockets, users
* add $LOGNAME to the tmp directory name, so that tmpdirs of separate
  users don't conflict
* use separate directory for sockets, so that we do not have to give
  buffers access to all cached pages
Diffstat (limited to 'res')
-rw-r--r--res/config.toml3
1 files changed, 2 insertions, 1 deletions
diff --git a/res/config.toml b/res/config.toml
index 23f37846..f126467c 100644
--- a/res/config.toml
+++ b/res/config.toml
@@ -237,7 +237,8 @@ urimethodmap = [
 	"/etc/urimethodmap",
 	"/usr/local/etc/w3m/urimethodmap"
 ]
-tmpdir = "/tmp/cha"
+tmpdir = "/tmp/cha-tmp-$LOGNAME"
+sockdir = "/tmp/cha-sock-$LOGNAME"
 editor = "${EDITOR:-vi}"
 cgi-dir = "${%CHA_LIBEXEC_DIR}/cgi-bin"
 download-dir = "/tmp/"