Fix missing overwrite argument to setenv().

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2015-09-02 16:05:42 +02:00
parent 814ffd9259
commit 0bd57a7826
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ int main(int argc, char* argv[])
set_hostname(&hostname);
/* Set default PATH, for uid 0 */
setenv("PATH", _PATH_STDPATH);
setenv("PATH", _PATH_STDPATH, 1);
/*
* Mount filesystems
+1 -1
View File
@@ -235,7 +235,7 @@ int service_start(svc_t *svc)
/* Set default path for regular users */
if (uid > 0)
setenv("PATH", _PATH_DEFPATH);
setenv("PATH", _PATH_DEFPATH, 1);
}
/* Serve copy of args to process in case it modifies them. */