[network-manager-applet] editor: fix generating interface name for new bridge connections (rh #1090575)
- From: Jiří Klimeš <jklimes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] editor: fix generating interface name for new bridge connections (rh #1090575)
- Date: Thu, 24 Apr 2014 08:38:08 +0000 (UTC)
commit 9ba9c3ebdb0142c5f95118a489ed926f0adb5b94
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 845637f..0593651 100644
--- a/src/connection-editor/page-bridge.c
+++ b/src/connection-editor/page-bridge.c
@@ -321,10 +321,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 (bridge_num <= num)
bridge_num = num + 1;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]