- 0001-conffile-Don-t-give-warning-for-optional-config-file.patch
Support optional include files correctly (boo#1164619) OBS-URL: https://build.opensuse.org/package/show/Base:System/nfs-utils?expand=0&rev=218
This commit is contained in:
parent
3243ee94dd
commit
bb3ce0cf21
@ -0,0 +1,33 @@
|
||||
From 1c20fcd0a315f3c692a465159985e6125289f4e4 Mon Sep 17 00:00:00 2001
|
||||
From: NeilBrown <neilb@suse.de>
|
||||
Date: Fri, 27 Mar 2020 15:58:24 +1100
|
||||
Subject: [PATCH] conffile: Don't give warning for optional config files.
|
||||
|
||||
A recent commit added the possibility of optional config files for which
|
||||
warning messages would be suppressed.
|
||||
Unfortunately only one of the possible warning messages - the least
|
||||
likely one - was suppressed.
|
||||
|
||||
This patch suppresses the other.
|
||||
|
||||
Fixes: c6fdcbe0a5cf ("conffile: allow optional include files")
|
||||
Signed-off-by: NeilBrown <neilb@suse.de>
|
||||
---
|
||||
support/nfs/conffile.c | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
--- a/support/nfs/conffile.c
|
||||
+++ b/support/nfs/conffile.c
|
||||
@@ -429,9 +429,9 @@ conf_parse_line(int trans, char *line, c
|
||||
|
||||
subconf = conf_readfile(relpath);
|
||||
if (subconf == NULL) {
|
||||
- xlog_warn("config error at %s:%d: "
|
||||
- "error loading included config",
|
||||
- filename, lineno);
|
||||
+ if (!optional)
|
||||
+ xlog_warn("config error at %s:%d: error loading included config",
|
||||
+ filename, lineno);
|
||||
if (relpath)
|
||||
free(relpath);
|
||||
return;
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 27 05:06:12 UTC 2020 - Neil Brown <nfbrown@suse.com>
|
||||
|
||||
- 0001-conffile-Don-t-give-warning-for-optional-config-file.patch
|
||||
Support optional include files correctly
|
||||
(boo#1164619)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 24 10:13:53 UTC 2020 - Petr Vorel <pvorel@suse.cz>
|
||||
|
||||
|
@ -46,6 +46,7 @@ Source25: rpc-svcgssd.options.conf
|
||||
Source26: nfs.conf
|
||||
Source27: nfs-kernel-server.tmpfiles.conf
|
||||
Patch0: nfs-utils-1.0.7-bind-syntax.patch
|
||||
Patch1: 0001-conffile-Don-t-give-warning-for-optional-config-file.patch
|
||||
|
||||
BuildRequires: e2fsprogs-devel
|
||||
BuildRequires: fedfs-utils-devel
|
||||
@ -144,6 +145,7 @@ This package contains additional NFS documentation.
|
||||
%prep
|
||||
%setup -q -a 1
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
cp %{SOURCE6} .
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user