From a1d9d0a4465bc0b48c8f7c5800c8645b0d353dfb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 18 Nov 2013 21:19:49 +0100 Subject: export path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/cerberus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 */ } -- cgit v1.2.3-70-g09d2