Re: BUG #12755: pg_upgrage creates potentially dangerous delete_old_cluster.bat - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: BUG #12755: pg_upgrage creates potentially dangerous delete_old_cluster.bat
Date
Msg-id 20150210181116.GD18557@momjian.us
Whole thread Raw
In response to BUG #12755: pg_upgrage creates potentially dangerous delete_old_cluster.bat  (toni.helenius@syncrontech.com)
Responses Re: BUG #12755: pg_upgrage creates potentially dangerous delete_old_cluster.bat  (Bruce Momjian <bruce@momjian.us>)
List pgsql-bugs
On Tue, Feb 10, 2015 at 10:44:41AM +0000, toni.helenius@syncrontech.com wrote:
> The following bug has been logged on the website:
>
> Bug reference:      12755
> Logged by:          Toni Helenius
> Email address:      toni.helenius@syncrontech.com
> PostgreSQL version: 9.4.1
> Operating system:   Windows 7
> Description:
>
> pg_upgrage creates potentially dangerous delete_old_cluster.bat. RMDIR
> without quotes.
>
> RMDIR /s/q C:\Program Files\PostgreSQL\9.3\data
>
> Executes as:
> RMDIR /s/q C:\Program
>
> Needs quotes!!

Wow, very good point.  Not sure why this problem was not reported
before.  Patch attached.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +

Attachment

pgsql-bugs by date:

Previous
From: dean deloach
Date:
Subject: Re: BUG #12749: WARNING: unrecognized node type: 701
Next
From: dean deloach
Date:
Subject: Re: BUG #12749: WARNING: unrecognized node type: 701