mirror of
https://github.com/troglobit/finit.git
synced 2026-11-01 13:10:32 +00:00
Fix missing overwrite argument to setenv().
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
814ffd9259
commit
0bd57a7826
2 files changed
+2
-2
No files matched your search
@@ -135,7 +135,7 @@ int main(int argc, char* argv[])
|
|||||||
set_hostname(&hostname);
|
set_hostname(&hostname);
|
||||||
|
|
||||||
/* Set default PATH, for uid 0 */
|
/* Set default PATH, for uid 0 */
|
||||||
setenv("PATH", _PATH_STDPATH);
|
setenv("PATH", _PATH_STDPATH, 1);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mount filesystems
|
* Mount filesystems
|
||||||
|
|||||||
@@ -235,7 +235,7 @@ int service_start(svc_t *svc)
|
|||||||
|
|
||||||
/* Set default path for regular users */
|
/* Set default path for regular users */
|
||||||
if (uid > 0)
|
if (uid > 0)
|
||||||
setenv("PATH", _PATH_DEFPATH);
|
setenv("PATH", _PATH_DEFPATH, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Serve copy of args to process in case it modifies them. */
|
/* Serve copy of args to process in case it modifies them. */
|
||||||
|
|||||||
Reference in new issue
Block a user