diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-07 23:24:41 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-07 23:24:50 +0200 |
commit | 09082a94b64f0b3b6cec44d4d8f423ab9abd1630 (patch) | |
tree | cb8dbfd6621a425f1e579cf45852631509744b22 | |
parent | ee2b489421ce8b47c08fb42c598c5af47043a9f9 (diff) |
main: set $PATH if it isn't set
-rw-r--r-- | main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -272,6 +272,9 @@ int main(int argc, char *argv[]) { assert_se(action == ACTION_RUN || action == ACTION_TEST); + /* Set up PATH unless it is already set */ + setenv("PATH", "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", false); + /* Move out of the way, so that we won't block unmounts */ assert_se(chdir("/") == 0); |