Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 X-Authentication-Warning: mailrelay1.vs.dasa.de: iscan owned process doing -bs Message-ID: <156038A5123A7F43B4357AAEB498AF5776B292@ulm002.vs.dasa.de> From: "Guettich, Ulrich, OPM2" To: "'cygwin AT cygwin DOT com'" Subject: Re: Prn lpt1 nul aux ...Win Xp Date: Wed, 30 Jun 2004 13:42:46 +0200 MIME-Version: 1.0 Content-Type: text/plain > Hi, >> >> I have recognized that files named "aux", "lpt1", "nul", "prn" ... (old DOS >> devices) generated under Cygwin on a XP OS cannot be deleted anymore: >> >> rm: cannot unlink `prn': Permission denied >> >> Why? How to get rid of them? > >It's a bug in 1.5.10 that these files can be created. That will be fixed >in the next version. > >In the meantime, build the below source with > > gcc ntdel.c -o ntdel -lntdll > >Let's say, the directory in which you created "nul" is C:\your\dir, then >you should get rid of that file with > > ntdel c:/your/dir/nul > >Corinna Works fine. Thanks! Ulrich -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/