mirror of
https://git.proxmox.com/git/proxmox
synced 2025-04-28 10:11:20 +00:00
daemon: set_var is now unsafe
In edition 2024 set_var is unsafe. Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
parent
abd07ffcff
commit
9be42ea5ad
@ -79,7 +79,7 @@ impl Reloader {
|
|||||||
|
|
||||||
fn pre_exec(self) -> Result<(), Error> {
|
fn pre_exec(self) -> Result<(), Error> {
|
||||||
for item in self.pre_exec {
|
for item in self.pre_exec {
|
||||||
std::env::set_var(item.name, (item.store_fn)()?);
|
unsafe { std::env::set_var(item.name, (item.store_fn)()?) };
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user