rundir: Fix the uid == 0 case

This makes get_rundir actually do what I meant it to do... for some reason I missed that one in testing... Signed-off-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 97a696c6
......@@ -381,8 +381,10 @@ const char *get_rundir()
char *rundir;
const char *homedir;
if (geteuid() == 0)
if (geteuid() == 0) {
rundir = RUNTIME_PATH;
return rundir;
}
rundir = getenv("XDG_RUNTIME_DIR");
if (!rundir) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment