projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee2b489
)
main: set $PATH if it isn't set
author
Lennart Poettering
<lennart@poettering.net>
Wed, 7 Apr 2010 21:24:41 +0000
(23:24 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 7 Apr 2010 21:24:50 +0000
(23:24 +0200)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index
397e868
..
ea001b1
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-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);