045f8440d4
- Start fcoemon in foreground from service file (bnc#873269) * Add 0030-fcoe.service-Add-foreground-to-prevent-fcoemon-to-be.patch - Fixup IEEE state machine * Add 0031-fcoemon-Fix-IEEE-state-machine.patch - Fix fipvlan crash during booting (bnc#877275): * Add 0032-fipvlan-Fix-crash-in-create_and_start_vlan.patch * Add 0033-fipvlan-suppress-warning-interface-already-exists.patch * Add 0034-fipvlan-do-not-crash-on-empty-MAC-address-in-lookup_.patch - Fixup warning messages during booting: * Add 0035-fipvlan-fixup-return-value-on-error.patch * Add 0036-fipvlan-clean-up-state-machine-for-pfd_add.patch - Remove obsolete file fcoe.config from sources OBS-URL: https://build.opensuse.org/request/show/234122 OBS-URL: https://build.opensuse.org/package/show/network:fcoe/fcoe-utils?expand=0&rev=18
39 lines
878 B
Diff
39 lines
878 B
Diff
From 16765b7b091f8130ae001af7693895ffe0886a0e Mon Sep 17 00:00:00 2001
|
|
From: Hannes Reinecke <hare@suse.de>
|
|
Date: Tue, 13 May 2014 09:44:17 +0200
|
|
Subject: fipvlan: fixup return value on error
|
|
|
|
fipvlan should return 1 on error or ENODEV (=19) if no interfaces
|
|
were found.
|
|
|
|
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
---
|
|
fipvlan.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/fipvlan.c b/fipvlan.c
|
|
index c5f3d3f..3300c68 100644
|
|
--- a/fipvlan.c
|
|
+++ b/fipvlan.c
|
|
@@ -982,7 +982,7 @@ int main(int argc, char **argv)
|
|
|
|
ns = rtnl_socket();
|
|
if (ns < 0) {
|
|
- rc = ns;
|
|
+ rc = 1;
|
|
goto ns_err;
|
|
}
|
|
pfd_add(ns);
|
|
@@ -1002,7 +1002,7 @@ int main(int argc, char **argv)
|
|
"no interfaces to perform discovery on");
|
|
else
|
|
FIP_LOG("no interfaces to perform discovery on");
|
|
- exit(1);
|
|
+ exit(ENODEV);
|
|
}
|
|
|
|
do_vlan_discovery();
|
|
--
|
|
1.7.12.4
|
|
|