diff options
author | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2023-06-20 08:09:05 -0300 |
---|---|---|
committer | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2023-10-19 10:56:54 +0200 |
commit | a3ef36da3e2ba471a17f8c6291d171c047f66cbf (patch) | |
tree | 2bb44e0c513a21c11d92bc9e250d7728b4976061 /src/librc/librc.c | |
parent | a97960623375078954cf551237fcf26be617bcbe (diff) |
librc: disallow running --user without XDG_RUNTIME_DIR set
since openrc-pam now sets XDG_RUNTIME_DIR in case it's unset, we can
expect it to exist.
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
Diffstat (limited to 'src/librc/librc.c')
-rw-r--r-- | src/librc/librc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c index 58219b40..53625759 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -1477,7 +1477,7 @@ rc_svcdir(void) if ((env = getenv("XDG_RUNTIME_DIR"))) { xasprintf(&path, "%s/%s", env, RC_USER_CONF_FOLDER); } else { - xasprintf(&path, "/tmp/%s/%d/", RC_USER_CONF_FOLDER, getuid()); + eerrorx("XDG_RUNTIME_DIR not set in user mode"); } } else { #endif |