mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-08 22:15:21 +00:00
Set a sane $PATH for virt-login-shell
The virt-login-shell binary shouldn't need to execute programs relying on $PATH, but just in case set a fixed $PATH value of /bin:/usr/bin Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
3e2f27e13b
commit
d665003da1
@ -212,6 +212,8 @@ main(int argc, char **argv)
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
setenv("PATH", "/bin:/usr/bin", 1);
|
||||
|
||||
virSetErrorFunc(NULL, NULL);
|
||||
virSetErrorLogPriorityFunc(NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user