Fix command line parsing
This commit is contained in:
parent
c4ef9cfc18
commit
b6e54e7865
@ -0,0 +1,36 @@
|
||||
From 8a22a98157f7f6773f3d1f295419569c6c880a47 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ulrich=20=C3=96lmann?= <u.oelmann@pengutronix.de>
|
||||
Date: Thu, 27 Aug 2015 22:18:55 +0200
|
||||
Subject: [PATCH] config: bugfix: parse commandline options into correct object
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Config related commandline options should be parsed into a function argument but
|
||||
were instead parsed into an object with local scope. As a result none of them
|
||||
had any impact.
|
||||
|
||||
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
|
||||
|
||||
Fixes: b4ad7434a87c165a77b615accbe1868a9df9221b
|
||||
|
||||
https://mail.gnome.org/archives/networkmanager-list/2015-August/msg00033.html
|
||||
---
|
||||
src/main.c | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/src/main.c b/src/main.c
|
||||
index 495262e..a9bc479 100644
|
||||
--- a/src/main.c
|
||||
+++ b/src/main.c
|
||||
@@ -246,7 +246,6 @@ do_early_setup (int *argc, char **argv[], NMConfigCmdLineOptions *config_cli)
|
||||
{NULL}
|
||||
};
|
||||
|
||||
- config_cli = nm_config_cmd_line_options_new ();
|
||||
if (!nm_main_utils_early_setup ("NetworkManager",
|
||||
argc,
|
||||
argv,
|
||||
--
|
||||
2.4.3
|
||||
|
@ -86,6 +86,9 @@ Source4: 20-connectivity-fedora.conf
|
||||
# Not upstream.
|
||||
Patch0: 0000-explain-dns1-dns2.patch
|
||||
|
||||
# nm-1-0 backports
|
||||
Patch1: 0001-config-bugfix-parse-commandline-options-into-correct.patch
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
%if 0%{?fedora} && 0%{?fedora} < 20
|
||||
@ -361,8 +364,8 @@ by nm-connection-editor and nm-applet in a non-graphical environment.
|
||||
|
||||
%prep
|
||||
%setup -q -n NetworkManager-%{realversion}
|
||||
|
||||
%patch0 -p1 -b .0000-explain-dns1-dns2.orig
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
|
||||
@ -681,6 +684,9 @@ fi
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Fri Aug 28 2015 Lubomir Rintel <lkundrak@v3.sk> - 1:1.0.6-2
|
||||
- Fix command line parsing
|
||||
|
||||
* Thu Aug 27 2015 Lubomir Rintel <lkundrak@v3.sk> - 1:1.0.6-1
|
||||
- Update to 1.0.6 release
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user