From dffb250953fb0d83b3413ef5f6e964ca58263e31 Mon Sep 17 00:00:00 2001 From: Peter Vrabec Date: Thu, 17 Jun 2010 09:44:04 +0000 Subject: [PATCH] fixing return codes (#602291) --- netlabel_tools-0.19-return_codes.patch | 10 ++++++++++ netlabel_tools.spec | 7 ++++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 netlabel_tools-0.19-return_codes.patch diff --git a/netlabel_tools-0.19-return_codes.patch b/netlabel_tools-0.19-return_codes.patch new file mode 100644 index 0000000..95baa3f --- /dev/null +++ b/netlabel_tools-0.19-return_codes.patch @@ -0,0 +1,10 @@ +--- netlabel_tools-0.19/netlabelctl/main.c 2009-01-05 16:24:16.000000000 -0500 ++++ netlabel_tools-0.19.new/netlabelctl/main.c 2010-06-17 02:54:06.864494476 -0400 +@@ -352,6 +352,7 @@ + fprintf(stderr, + MSG_ERR("unknown or missing module '%s'\n"), + module_name); ++ ret_val = 1; + goto exit; + } + ret_val = module_main(argc - optind - 1, argv + optind + 1); diff --git a/netlabel_tools.spec b/netlabel_tools.spec index a99dc33..23c5c2c 100644 --- a/netlabel_tools.spec +++ b/netlabel_tools.spec @@ -1,7 +1,7 @@ Summary: Tools to manage the Linux NetLabel subsystem Name: netlabel_tools Version: 0.19 -Release: 7%{?dist} +Release: 8%{?dist} License: GPLv2 Group: System Environment/Daemons URL: http://netlabel.sf.net/ @@ -9,6 +9,7 @@ Source0: http://downloads.sourceforge.net/netlabel/%{name}-%{version}.tar.gz Source1: netlabel Source2: netlabel.rules Patch1: netlabel_tools-0.17-new-hdrs.patch +Patch2: netlabel_tools-0.19-return_codes.patch BuildRoot: %{_tmppath}/%{name}-%{version} BuildRequires: kernel-headers >= 2.6.18 BuildRequires: libnl-devel @@ -25,6 +26,7 @@ configure the kernel subsystem. # Build fixes. %patch1 -p1 -b .new-hdrs +%patch2 -p1 -b .rc %build # Don't use _smp_mflags, it's small and a hand crafted Makefile @@ -51,6 +53,9 @@ rm -rf $RPM_BUILD_ROOT %attr(0644,root,root) %{_mandir}/man8/* %changelog +* Thu Jun 17 2010 Peter Vrabec - 0.19-8 +- fixing return codes (#602291) + * Wed Jun 16 2010 Peter Vrabec - 0.19-7 - make initscript LSB compliant (#522818) - show version of netlabelctl and libnetlabel in help (#602577)