projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80b2ab4
)
nspawn: initialize the veth_name (#3141)
author
Evgeny Vereshchagin
<evvers@ya.ru>
Thu, 28 Apr 2016 17:48:17 +0000
(20:48 +0300)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 28 Apr 2016 17:48:17 +0000
(19:48 +0200)
Fixes:
$ systemd-nspawn -h
...
Failed to remove veth interface ����: Operation not permitted
This is a follow-up for
d2773e59de3dd970d861
src/nspawn/nspawn.c
patch
|
blob
|
history
diff --git
a/src/nspawn/nspawn.c
b/src/nspawn/nspawn.c
index
5d39c9d
..
8c90aa8
100644
(file)
--- a/
src/nspawn/nspawn.c
+++ b/
src/nspawn/nspawn.c
@@
-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;