X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0	tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4D90CD5E.7040808@bopp.net>
Date: Mon, 28 Mar 2011 13:03:10 -0500
From: Jeremy Bopp <jeremy@bopp.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: EXTERNAL: 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
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 3/28/2011 12:07, Dante Allegria wrote:
> --- On Mon, 3/28/11, Damon Register <damon.w.register@lmco.com> 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)/*
> 
> <sigh> Should cygwin's rm have some built-in safeguards for this? :)

Probably the only way to get this protection would be to remove the
ability of the user running your build automation to delete the Cygwin
installation in the first place.  Otherwise, this could just as easily
happen somewhere else such as a Perl script that doesn't even use rm.
Depending on your situation, that may be easier said than done
unfortunately.

-Jeremy

--
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

