Re: EXTERNAL: Virus that deletes everything under c:/cygwin?

2011-03-30 Thread Andy Koppe
On 30 March 2011 09:27, Thorsten Kampe wrote: > * Christopher Faylor (Tue, 29 Mar 2011 11:35:33 -0400) >> On Tue, Mar 29, 2011 at 05:33:05PM +0200, Thorsten Kampe wrote: >> >As far as I know "-f" is already the default... >> >> If you're saying that "-f" is always active when you type "rm" then, no

Re: EXTERNAL: Virus that deletes everything under c:/cygwin?

2011-03-30 Thread Thorsten Kampe
* Dave Korn (Wed, 30 Mar 2011 00:11:05 +0100) > And I just learnt about the `--preserve-root' option, that I didn't > even know about before. You mean "--preserve-root do not remove `/' (default)" (quoting the man page)? I wonder whether I will receive another "If you're saying that

Re: EXTERNAL: Virus that deletes everything under c:/cygwin?

2011-03-30 Thread Thorsten Kampe
* Christopher Faylor (Tue, 29 Mar 2011 11:35:33 -0400) > On Tue, Mar 29, 2011 at 05:33:05PM +0200, Thorsten Kampe wrote: > >* Dave Korn (Tue, 29 Mar 2011 14:46:13 +0100) > >> On 29/03/2011 10:12, Thorsten Kampe wrote: > >> As for "rm", it already does kind-of have safeguards against this, and > >>

Re: EXTERNAL: Virus that deletes everything under c:/cygwin?

2011-03-29 Thread Dave Korn
On 29/03/2011 16:35, Christopher Faylor wrote: > On Tue, Mar 29, 2011 at 05:33:05PM +0200, Thorsten Kampe wrote: >> * Dave Korn (Tue, 29 Mar 2011 14:46:13 +0100) >>> On 29/03/2011 10:12, Thorsten Kampe wrote: >>> As for "rm", it already does kind-of have safeguards against this, and >>> that's what

Re: EXTERNAL: Virus that deletes everything under c:/cygwin?

2011-03-29 Thread Christopher Faylor
On Tue, Mar 29, 2011 at 05:33:05PM +0200, Thorsten Kampe wrote: >* Dave Korn (Tue, 29 Mar 2011 14:46:13 +0100) >> On 29/03/2011 10:12, Thorsten Kampe wrote: >> As for "rm", it already does kind-of have safeguards against this, and >> that's what the -f option is for - it turns them off. > >As far a

Re: EXTERNAL: Virus that deletes everything under c:/cygwin?

2011-03-29 Thread Thorsten Kampe
* Dave Korn (Tue, 29 Mar 2011 14:46:13 +0100) > On 29/03/2011 10:12, Thorsten Kampe wrote: > As for "rm", it already does kind-of have safeguards against this, and > that's what the -f option is for - it turns them off. As far as I know "-f" is already the default... Thorsten -- Problem reports

Re: EXTERNAL: Virus that deletes everything under c:/cygwin?

2011-03-29 Thread Dave Korn
On 29/03/2011 10:12, Thorsten Kampe wrote: > * Dante Allegria (Mon, 28 Mar 2011 10:07:32 -0700 (PDT)) >> 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? :) > >

Re: EXTERNAL: Virus that deletes everything under c:/cygwin?

2011-03-29 Thread Jeremy Bopp
On 3/29/2011 08:30, Dante Allegria wrote: > Thorsten Kampe wrote: >> Sure, it does. It's called "intelligent scripting" and it >> includes setting "errexit" and "nounset" in bash or Z Shell. >> If you are scripting >> and not using those above, then you got exactly what you >> deserved. > > Thank

Re: EXTERNAL: Virus that deletes everything under c:/cygwin?

2011-03-29 Thread Dante Allegria
Thorsten Kampe wrote: > Sure, it does. It's called "intelligent scripting" and it > includes setting "errexit" and "nounset" in bash or Z Shell. > If you are scripting > and not using those above, then you got exactly what you > deserved. Thanks for the tip, Thorsten! Any ideas what the best prac

Re: EXTERNAL: Virus that deletes everything under c:/cygwin?

2011-03-29 Thread Thorsten Kampe
* Dante Allegria (Mon, 28 Mar 2011 10:07:32 -0700 (PDT)) > 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? :) Sure, it does. It's called "intelligent scripting" an

Re: EXTERNAL: Virus that deletes everything under c:/cygwin?

2011-03-28 Thread Jeremy Bopp
On 3/28/2011 12:07, Dante Allegria wrote: > --- On Mon, 3/28/11, Damon Register wrote: > >> this at a company. Is that so? Do you have an >> aggressive IS department who might have decided they don't like Cygwin? > > No, turns out it was because someone committed this into the nightly build >

Re: EXTERNAL: Virus that deletes everything under c:/cygwin?

2011-03-28 Thread Dante Allegria
--- On Mon, 3/28/11, Damon Register wrote: > this at a company.  Is that so?  Do you have an > aggressive IS department who might have decided they don't like Cygwin? No, turns out it was because someone committed this into the nightly build scripts: rm -rf $(DOES_NOT_EXIST)/* Should cygwi

Re: EXTERNAL: Virus that deletes everything under c:/cygwin?

2011-03-28 Thread Damon Register
On 3/28/2011 10:43 AM, Dante Allegria wrote: We just discovered that a whole bunch of our Windows machines had everything under their c:/cygwin directories deleted over the weekend. You said "we" and "bunch" which leads me to believe that you are using this at a company. Is that so? Do you hav