Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2107200ybb; Thu, 26 Mar 2020 22:11:03 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs6U5JzrsNxWSLp4JK1Zzzf6BY2mVojVE5PNORxzjAaO8elvAgJ4so9/qWr85+cIyiLgr5u X-Received: by 2002:a4a:da48:: with SMTP id f8mr7870160oou.44.1585285861169; Thu, 26 Mar 2020 22:11:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585285861; cv=none; d=google.com; s=arc-20160816; b=U8gbrHan7AEdJJfv3ifYkgnVjIA5AXokn8lm2GRcSNWngEKmsok411264cNRXTOXIN KkGxhErq7St9PSmuw4jdj43Ezk0ok+2LAbxdkkZcOQY68pGGYHOLGasIaErC8ZTjZEvu 0pWbVjqFRbltJp6puHSPFPkycktILfy3ztZpkNW2fmzLOKd2h2mxJDOoltZYqFe1Y6oy PitPUoGe4eAKxu+YpOjBkq5KKFxvgbTuMOjmsLmVOih+Bh5ZqUayAa8JEzal9PhGfusA aYtEDtEeHNCZonKoru2KVb3S++ouZcjWigkOiqdN7EA6zjZAYR5aNgDyhyaMuDNWFzM8 W1cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:cc:subject:date :to:from; bh=D31OPJoopFVDLOwIN5l4LExGX+Othmh/ZEYMmsvFefc=; b=N+5aDuuuyJeDeWq32w2YVTtDwV/8Aa0BdtzonEf+4SPKxf9KgX+uVMHHVEDxzWpeLy f1nxlkUptW6GwL98wwph9KW9WzGUlLLQErw09zceGb1cCeOw+kKBKWFVxnVLn5u8NKqZ SjX8zPLh9XoHAowx+f+E3TE5gy1YoScM215J31HSaS8X3rLQxiAy7wz4AgdtcG5nlbTY uZc1s+hG7na6mdB6CfW6PCsXtHvlRzi/pZdizwi9o2GOP4kUdT3FP8i73wGKmB+XfrTY NqS0RNAIM5lSj7hmiGGwLhadFgKA7RFvAEzFRDG5TWKxkHfB8slLWMxRC7DDwwWkpSr4 sHjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f46si1962689otf.146.2020.03.26.22.10.43; Thu, 26 Mar 2020 22:11:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726071AbgC0FKl (ORCPT + 99 others); Fri, 27 Mar 2020 01:10:41 -0400 Received: from mx2.suse.de ([195.135.220.15]:50560 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725936AbgC0FKl (ORCPT ); Fri, 27 Mar 2020 01:10:41 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 46EFCAFAA; Fri, 27 Mar 2020 05:10:39 +0000 (UTC) From: NeilBrown To: Steve Dickson Date: Fri, 27 Mar 2020 16:10:33 +1100 Subject: [PATCH nfs-utils] conffile: Don't give warning for optional config files. cc: linux-nfs Message-ID: <87imiq7586.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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 =2D-- support/nfs/conffile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) That was careless - sorry. I really have tested this time. NeilBrown diff --git a/support/nfs/conffile.c b/support/nfs/conffile.c index d55bfe10120a..3d13610ee766 100644 =2D-- a/support/nfs/conffile.c +++ b/support/nfs/conffile.c @@ -429,9 +429,9 @@ conf_parse_line(int trans, char *line, const char *file= name, int lineno, char ** =20 subconf =3D conf_readfile(relpath); if (subconf =3D=3D NULL) { =2D xlog_warn("config error at %s:%d: " =2D "error loading included config", =2D filename, lineno); + if (!optional) + xlog_warn("config error at %s:%d: error loading included config", + filename, lineno); if (relpath) free(relpath); return; =2D-=20 2.25.2 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAl59isoACgkQOeye3VZi gbkumxAAgRGtWcFY7mZ3OuGeP0ZTxknMERRrceoNKS1eRogiSjLPn+GVVDgG7Z2f HH81LBqmIcWv301lQWbOoMkIAJDz0pNiCKV3elY4raKHAjo/n+ELePmzzjxJWWUq Bnvb258Ypz8CB7et8x/7wu4qLTv86SB7nbrkIi+nriOWPxPlTsSFiD4FCKsIHWd6 A4H6+JHYCwdvD38n3cXD+2C3zT9bKEiAWbb8MXXEV0NJA9PwegD/sSnLKF3qbsIC uIU/njMY/N8ggDTp11bPaP4UVAO1lOad4CO65IQHj0F8jfcyGZbO6RcN9mYBtJD1 Ho15CrGDuSde+bLZGWeJ+y284QwE6rN2STZao9F++VZjljn/jSwjkvrp/FNKsX/l t2rohQi5OvRbs8JC8BHn2k24VG9PoVAkGAic2x06Asq9lDiirM5FyAJRMKxcY+vl Pai9TN4Rl8dgNit2xA5Eyg1kvwEXkEISDKP+ut7T3/QuYwvT5SZ9iPzZclhQ/VtL HGinpJj9DtU+WBQEpAqbPLjp0wIO/+hqWLi08+CVdJK90jY4flf21h+okX5afQG7 CHeQY9gNOIZplwCsj2ZnLgUudMyiVr8byvNvImidXFVbqXt6D1teWdyimFcrBzJt j6OgJ5BZrK7m8Mabt0ovJDyKx7QR0mS8bW+L4FypDAkFFMlMtHQ= =9/w/ -----END PGP SIGNATURE----- --=-=-=--