aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cerberus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cerberus.c b/src/cerberus.c
index 8d2a052..49e9857 100644
--- a/src/cerberus.c
+++ b/src/cerberus.c
@@ -243,10 +243,10 @@ int main(int argc, char** argv)
setenv("LOGUSER", entry->pw_name, 1);
setenv("SHELL", entry->pw_shell, 1);
setenv("TERM", term ?: DEFAULT_TERM, 1);
+ setenv("PATH", entry->pw_uid ? PATH : PATH_ROOT, 1);
+
if (term)
free(term);
-
- /* TODO set PATH */
}