forked from pool/systemd
ccb7bd2935
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=217
22 lines
824 B
Diff
22 lines
824 B
Diff
Based on c00524c9cc7fb498c7244350e25823b8352f078c Mon Sep 17 00:00:00 2001
|
|
From: Tom Gundersen <teg@jklm.no>
|
|
Date: Fri, 19 Sep 2014 23:02:00 +0200
|
|
Subject: [PATCH] nspawn: don't try to create veth link with too long ifname
|
|
|
|
Reported by: James Lott <james@lottspot.com>
|
|
---
|
|
src/nspawn/nspawn.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- src/nspawn/nspawn.c
|
|
+++ src/nspawn/nspawn.c 2014-09-23 15:33:06.766236272 +0000
|
|
@@ -1383,7 +1383,7 @@ static int setup_veth(pid_t pid, char if
|
|
|
|
/* Use two different interface name prefixes depending whether
|
|
* we are in bridge mode or not. */
|
|
- snprintf(iface_name, IFNAMSIZ, "%s-%s",
|
|
+ snprintf(iface_name, IFNAMSIZ - 1, "%s-%s",
|
|
arg_network_bridge ? "vb" : "ve", arg_machine);
|
|
|
|
r = sd_rtnl_open(&rtnl, 0);
|