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 1iP9Z7-0003WU-3v for pgsql-bugs@arkaria.postgresql.org; Mon, 28 Oct 2019 18:16:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iP9Z5-0002cU-Kq for pgsql-bugs@arkaria.postgresql.org; Mon, 28 Oct 2019 18:16:27 +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 1iP9Z5-0002bl-D2 for pgsql-bugs@lists.postgresql.org; Mon, 28 Oct 2019 18:16:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iP9Z3-0007lg-2w for pgsql-bugs@lists.postgresql.org; Mon, 28 Oct 2019 18:16:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x9SIGLEv029476; Mon, 28 Oct 2019 14:16:21 -0400 From: Tom Lane To: =?UTF-8?Q?Juan_Jos=C3=A9_Santamar=C3=ADa_Flecha?= cc: cilizili@protonmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in the current directory. In-reply-to: References: <16080-5d7f03222469f717@postgresql.org> <22130.1572097001@sss.pgh.pa.us> <26128.1572103204@sss.pgh.pa.us> <857.1572111840@sss.pgh.pa.us> <20359.1572190966@sss.pgh.pa.us> Comments: In-reply-to =?UTF-8?Q?Juan_Jos=C3=A9_Santamar=C3=ADa_Flecha?= message dated "Sun, 27 Oct 2019 21:55:45 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29474.1572286581.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 28 Oct 2019 14:16:21 -0400 Message-ID: <29475.1572286581@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =3D?UTF-8?Q?Juan_Jos=3DC3=3DA9_Santamar=3DC3=3DADa_Flecha?=3D writes: > On Sun, Oct 27, 2019 at 4:42 PM Tom Lane wrote: >> I poked around a bit for other references to cmd.exe. It looks >> like psql's do_shell() is handling this correctly already, but should >> we not also fix spawn_process() in src/test/regress/pg_regress.c ? > Agreed, so please find attached an updated patch. Looks OK now, so pushed. (I don't have the ability to test this locally, but the buildfarm will soon tell us if it's wrong.) regards, tom lane