From 61cf48f3f9caab1c98686e5012fd400853f8fbdd Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 18 Feb 2014 18:34:36 +0000 Subject: [PATCH] avoid problems with different users having different values for XDG_RUNTIME_DIR by not using that variable for system-wide paths of UNIX domain sockets --- src/util/util.conf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/util/util.conf b/src/util/util.conf index 1627b068a..ef074fba0 100644 --- a/src/util/util.conf +++ b/src/util/util.conf @@ -26,7 +26,12 @@ GNUNET_CACHE_HOME = ${XDG_CACHE_HOME:-$GNUNET_HOME/.cache}/gnunet/ # Runtime data (i.e UNIX domain sockets, locks, always lost on system boot) # This is the variable for system-wide services; use GNUNET_USER_RUNTIME_DIR # for per-user services (where USER_SERVICE=YES is set) -GNUNET_RUNTIME_DIR = ${XDG_RUNTIME_DIR:-${TMPDIR:-${TMP:-/tmp}}}/gnunet-system-runtime/ +# Note that the 'gnunet'/system user must have $TMPDIR/$TMP set to +# exactly the same values as 'normal' users, otherwise this will fail. +# If $TMPDIR or $TMP are set to different directories for different +# users, this option should be changed to point to the same directory +# for all users (i.e. by simply using "/tmp/gnunet-system-runtime/"). +GNUNET_RUNTIME_DIR = ${TMPDIR:-${TMP:-/tmp}}/gnunet-system-runtime/ # Runtime data for per-user services GNUNET_USER_RUNTIME_DIR = ${XDG_RUNTIME_DIR:-${TMPDIR:-${TMP:-/tmp}}}/gnunet-${USERHOME:-${USER:-user}}-runtime/ -- 2.25.1