public inbox for cygwin-talk@cygwin.com
 help / color / mirror / Atom feed
* Re: PATCH: rm MessageBox() (was: Virus that deletes everything under c:/cygwin?)
       [not found] <468547.38757.qm@web52801.mail.re2.yahoo.com>
@ 2011-03-28 21:37 ` Warren Young
  2011-03-28 22:30   ` Christopher Faylor
  0 siblings, 1 reply; 2+ messages in thread
From: Warren Young @ 2011-03-28 21:37 UTC (permalink / raw)
  To: The Cygwin-Talk Maiming List

On 3/28/2011 11:07 AM, Dante Allegria wrote:
> --- On Mon, 3/28/11, Damon Register<damon.w.register@lmco.com>  wrote:
>
> No, turns out it was because someone committed this into the nightly build scripts:
>     rm -rf $(DOES_NOT_EXIST)/*
>
> <sigh>  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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: rm MessageBox() (was: Virus that deletes everything under c:/cygwin?)
  2011-03-28 21:37 ` PATCH: rm MessageBox() (was: Virus that deletes everything under c:/cygwin?) Warren Young
@ 2011-03-28 22:30   ` Christopher Faylor
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher Faylor @ 2011-03-28 22:30 UTC (permalink / raw)
  To: cygwin-talk

On Mon, Mar 28, 2011 at 03:37:03PM -0600, Warren Young wrote:
>On 3/28/2011 11:07 AM, Dante Allegria wrote:
>> --- On Mon, 3/28/11, Damon Register<damon.w.register@lmco.com>  wrote:
>>
>> No, turns out it was because someone committed this into the nightly build scripts:
>>     rm -rf $(DOES_NOT_EXIST)/*
>>
>> <sigh>  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.

We look forward to the final product.  Make sure that you sign an
assignment with RedHat since this will be a substantial amount of work.
But, it is obviously valuable work since it brings CygWin further down
the path towards being a true GUI and everyone knows that's a good
thing.

cgf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-28 22:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <468547.38757.qm@web52801.mail.re2.yahoo.com>
2011-03-28 21:37 ` PATCH: rm MessageBox() (was: Virus that deletes everything under c:/cygwin?) Warren Young
2011-03-28 22:30   ` Christopher Faylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).