From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16826 invoked by alias); 28 Mar 2011 21:37:11 -0000 Received: (qmail 16819 invoked by uid 22791); 28 Mar 2011 21:37:11 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from etr-usa.com (HELO etr-usa.com) (130.94.180.135) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Mar 2011 21:37:06 +0000 Received: (qmail 88913 invoked by uid 13447); 28 Mar 2011 21:37:06 -0000 Received: from unknown (HELO [172.20.0.42]) ([71.210.202.172]) (envelope-sender ) by 130.94.180.135 (qmail-ldap-1.03) with SMTP for ; 28 Mar 2011 21:37:06 -0000 Message-ID: <4D90FF7F.9010500@etr-usa.com> Date: Mon, 28 Mar 2011 21:37:00 -0000 From: Warren Young User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: The Cygwin-Talk Maiming List Subject: Re: PATCH: rm MessageBox() (was: Virus that deletes everything under c:/cygwin?) References: <468547.38757.qm@web52801.mail.re2.yahoo.com> In-Reply-To: <468547.38757.qm@web52801.mail.re2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-talk-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cygwin-talk-owner@cygwin.com Reply-To: The Vulgar and Unprofessional Cygwin-Talk List Mail-Followup-To: cygwin-talk@cygwin.com X-SW-Source: 2011-q1/txt/msg00050.txt.bz2 On 3/28/2011 11:07 AM, Dante Allegria wrote: > --- On Mon, 3/28/11, Damon Register wrote: > > No, turns out it was because someone committed this into the nightly build scripts: > rm -rf $(DOES_NOT_EXIST)/* > > Should cygwin's rm have some built-in safeguards for this? :) I'd like to propose a patch adding a series of MessageBox()es to Cygwin's unlink(2) syscall to make it ask "Are you sure?" then "Are you really sure?" then "Are you really really double-dog sure?" every time you try to remove a file. Additionally, I propose adding a patch to rm(1) so that if you give -r, it will activate UAC on Vista/7 systems before doing any work, because everyone loves it when the screen dims and you get yet another dialog you must okay before the system will do anything else. I will start this work on April 1, if there are no objections.