X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <4D926709.2050601@gmail.com> Date: Wed, 30 Mar 2011 00:11:05 +0100 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: EXTERNAL: Virus that deletes everything under c:/cygwin? References: <4D90B414 DOT 4040605 AT lmco DOT com> <468547 DOT 38757 DOT qm AT web52801 DOT mail DOT re2 DOT yahoo DOT com> <4D91E2A5 DOT 80806 AT gmail DOT com> <20110329153533 DOT GA17260 AT ednor DOT casa DOT cgf DOT cx> In-Reply-To: <20110329153533.GA17260@ednor.casa.cgf.cx> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 the -f option is for - it turns them off. >> 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 > that is not true. > And I just learnt about the `--preserve-root' option, that I didn't even know about before. (Not that that helps when you've typed '/*' rather than '/' though... and in fact that trailing '/*' probably wasn't actually deliberately intended to leave files beginning with a period behind....) cheers, DaveK -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple