nspawn: when running nspawn, set a $PATH including both bin + sbin by default (#8756)
We don't know what the container payload needs, hence default to a PATH with both bin and sbin included, as well as / and /usr. Follow-up for #8324 Fixes: #8698
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
d18b57f7fd
commit
0c300adfa4
+1
-1
@@ -2267,7 +2267,7 @@ static int inner_child(
|
||||
char as_uuid[37];
|
||||
unsigned n_env = 1;
|
||||
const char *envp[] = {
|
||||
"PATH=" DEFAULT_PATH_SPLIT_USR,
|
||||
"PATH=" DEFAULT_PATH_COMPAT,
|
||||
NULL, /* container */
|
||||
NULL, /* TERM */
|
||||
NULL, /* HOME */
|
||||
|
||||
Reference in New Issue
Block a user