Skip to content

Commit

Permalink
rc-logger.c: fix log path for user-mode
Browse files Browse the repository at this point in the history
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
  • Loading branch information
navi-desu committed Jul 22, 2024
1 parent d4a34ad commit 5824e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openrc/rc-logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ rc_logger_open(const char *level)
if ((env = getenv("XDG_STATE_HOME")))
xasprintf(&logfile, "%s/openrc.log", env);
else if ((env = getenv("HOME")))
xasprintf(&logfile, "%s/openrc.log", env);
xasprintf(&logfile, "%s/.local/state/openrc.log", env);
else
eerrorx("XDG_STATE_HOME and HOME unset.");
} else {
Expand Down

0 comments on commit 5824e26

Please sign in to comment.