mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
nspawn: initialize the veth_name (#3141)
Fixes:
$ systemd-nspawn -h
...
Failed to remove veth interface ����: Operation not permitted
This is a follow-up for d2773e59de
This commit is contained in:
parent
80b2ab4bc0
commit
5aa3eba50c
@ -3339,7 +3339,7 @@ int main(int argc, char *argv[]) {
|
||||
_cleanup_close_ int master = -1, image_fd = -1;
|
||||
_cleanup_fdset_free_ FDSet *fds = NULL;
|
||||
int r, n_fd_passed, loop_nr = -1;
|
||||
char veth_name[IFNAMSIZ];
|
||||
char veth_name[IFNAMSIZ] = "";
|
||||
bool secondary = false, remove_subvol = false;
|
||||
sigset_t mask_chld;
|
||||
pid_t pid = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user