diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-11-18 21:19:49 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-11-18 21:19:49 +0100 |
commit | a1d9d0a4465bc0b48c8f7c5800c8645b0d353dfb (patch) | |
tree | 6b50a7772f91e58a5448b7b39757c695c5c8817f /src/cerberus.c | |
parent | more flexible (diff) | |
download | libpassphrase-a1d9d0a4465bc0b48c8f7c5800c8645b0d353dfb.tar.gz libpassphrase-a1d9d0a4465bc0b48c8f7c5800c8645b0d353dfb.tar.bz2 libpassphrase-a1d9d0a4465bc0b48c8f7c5800c8645b0d353dfb.tar.xz |
export path
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/cerberus.c | 4 |
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 */ } |