[network-manager-applet/nma-0-9-8] editor: fix generating interface name for new bridge connections (rh #1090575)
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/nma-0-9-8] editor: fix generating interface name for new bridge connections (rh #1090575)
- Date: Fri, 25 Apr 2014 15:17:23 +0000 (UTC)
commit 54418ca0f444b16ab939bccef89a08f4c89ed331
Author: Jiří Klimeš <jklimes redhat com>
Date: Thu Apr 24 10:32:15 2014 +0200
editor: fix generating interface name for new bridge connections (rh #1090575)
https://bugzilla.redhat.com/show_bug.cgi?id=1090575
src/connection-editor/page-bridge.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/connection-editor/page-bridge.c b/src/connection-editor/page-bridge.c
index 649d2cd..66cd76c 100644
--- a/src/connection-editor/page-bridge.c
+++ b/src/connection-editor/page-bridge.c
@@ -326,10 +326,10 @@ bridge_connection_new (GtkWindow *parent,
if (!s_bridge)
continue;
iface = nm_setting_bridge_get_interface_name (s_bridge);
- if (!iface || strncmp (iface, "bridge", 4) != 0 || !g_ascii_isdigit (iface[4]))
+ if (!iface || strncmp (iface, "bridge", 6) != 0 || !g_ascii_isdigit (iface[6]))
continue;
- num = atoi (iface + 4);
+ num = atoi (iface + 6);
if (num > max_bridge_num)
max_bridge_num = num;
if (num == bridge_num)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]