Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j2Rtt-0000Ft-01 for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Feb 2020 03:44:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j2Rtr-0004ic-AF for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Feb 2020 03:44:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j2Rtp-0004iV-Ht for pgsql-hackers@lists.postgresql.org; Fri, 14 Feb 2020 03:44:19 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j2Rtk-0004d3-Ve for pgsql-hackers@postgresql.org; Fri, 14 Feb 2020 03:44:16 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id BCFC7C6F; Thu, 13 Feb 2020 22:44:08 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 13 Feb 2020 22:44:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=g9YpHo2iD8m0sicBFaIy0ZrlSVz gG+0GauF3g65lqoY=; b=POpOg7ASkNA1YOjY0596QG8ujecCWqcQnYiwxz2GW4e lhcaMIZRpJCHlJS8ryVc1Qp5ChTrHYtMNFKJd1KA0a1PiPp/aPnZ7vKFqVoXAecw Doy9G0fUNO5/wjO6YWup9cDz24Y1EfKaLzRmCCdJk/ztuF1/mVu8qlblZThaYjpN WLbMLSyk0yYo77sqtPsHqAIwbwF0ITPi9NehwYWMzv3hIvr5skU5G2uwVLGXqYC1 xmWhlRjkJbLKwmFvZWr9qi1abGNfWOz76h6TomnxAOycg6S427HLAfatX8BuP0G0 3a9CzgKiCWFlZU4VKp0XPdzNuEuBdKnDvLKiZCn5WMw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=g9YpHo 2iD8m0sicBFaIy0ZrlSVzgG+0GauF3g65lqoY=; b=eN101rGR5HK29PYIBj6/Sp ub7YsWb246Q0oUu4bT1VBgw2ETZVQsTtVloqS2u5HFWZKcUNKJyq9cWLmZXHruYA Z98rBjGieh1gzeKHnziu4PTG+F3JcTGXYUDDolIqVDKZnEsleVxhqXEYN+BMzQem nRXZhp2QOpmalJnmp7qgVhMl7BF7nvyc+QcgO9t8riPJH9eHMKKJiHP8wZkgEo3P f6tJjmuLCbHwOEwbOvh4k5c5keNUXGJ+zOqPhb77W0yr6ezay7jhasErtJ8SAJme mWuP1YAI1E7nSSHHSLWp/JjBMtrErw9gKzqz1vKoW9+ggX1rLwjORUl9v4FJqv3w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrieelgdeivdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdefhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduuddurddutddvrddukedtrddukeehnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesph grqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id BFF603280064; Thu, 13 Feb 2020 22:44:06 -0500 (EST) Date: Fri, 14 Feb 2020 12:44:03 +0900 From: Michael Paquier To: Julien Rouhaud Cc: Antonin Houska , pgsql-hackers Subject: Re: Dead code in adminpack Message-ID: <20200214034403.GA1998@paquier.xyz> References: <32663.1581592539@antos> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 13, 2020 at 12:41:46PM +0100, Julien Rouhaud wrote: > On Thu, Feb 13, 2020 at 12:14 PM Antonin Houska wrote: >> I've noticed that convert_and_check_filename() is always passed false fo= r the >> "logAllowed" argument - someone probably forgot to remove the argument w= hen it >> was decided that log files are no longer accepted. If the argument was r= emoved, >> the function would become a bit simpler, see the patch. >=20 > Indeed, and actually I don't see when this codepath was reachable. >=20 > Patch LGTM. Thanks, applied. -- Michael --SUOF0GtieIMvvwua Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl5GF4MACgkQnvQgOdby QH0SAQ//V8qHbqFL4viSUFLKLRZ1BZXjrcjeNadcu3dGFLtklB3aRlvuhVMdPgYA iLd8kKNNquQfVsc4bXDfp8Jsvb4eZVXUTFagtHP+/A6caW2DrySk6w8qYiFD47sr RkeyvmAkad5nX15mkPXwcnCyb/hzxc1MtyEXMMHlcGmQ7haXtz/RbHGjca6ERadp PpBCX3Q0H8p5EMeXGbjBnRVjnpCiGd4+pm2LJVaJVeoUETYKRvNoffWZZUilgfvg pe198OE5pXY6f1oo8xY3N1izhPTPCZ6WMy0efPkM1jSRtrcLdHPE4l1u5zLHPiuN 9hjpOOwyM6Od/98xWAOCUGRNMZk0xAa3Hq8si31VUFTm2sv1ZxUU65ZtQXo4qn0i eBcdVmmmkk2+c5bCwU9+GB4jDjn4Vgk36rR1zheKup4geSb+2FCmuYW1XURqZq8Q oDlW9HnmzZH/MV/KQ8WJXENrypw+OgUK3nXE1pSDszMGB1K9dAaPd/W8Xo0X2tuq a8n89pFsxYOcqx2UUuplZJaE5IcMdEMCvV3W7PFDckqyXptb0dX9GvvTFUeOPo// eBe8dWkbjcQQ6/c46qXUFcw4ESl5BYqHC4DUjazNnIuaUjeYfUWBX/+tf1wxjqLi pG3LDhwX8I8Dunp+ar16dG5BuXV+2+fRJBrq6gThNikFGxRfDms= =B0o7 -----END PGP SIGNATURE----- --SUOF0GtieIMvvwua--