Fix missing default PATH for root and non-root users.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-09-02 14:50:46 +02:00
1 parent f94db7bceb
commit 814ffd9259
2 files changed
+9 -1

No files matched your search

+3
View File
@@ -134,6 +134,9 @@ int main(int argc, char* argv[])
/* Set hostname as soon as possible, for syslog et al. */
set_hostname(&hostname);
/* Set default PATH, for uid 0 */
setenv("PATH", _PATH_STDPATH);
/*
* Mount filesystems
*/