X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <478F769C.8070501@stats.uwo.ca> Date: Thu, 17 Jan 2008 10:39:08 -0500 From: Duncan Murdoch User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: rm fails with bad mount information Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 I'm a Windows maintainer for the R project. We include the Cygwin rm.exe program in the toolset we've put together for developers, and have occasionally heard that it fails. A few days ago I tracked down the cause of failure to the following: Users who install Cygwin then uninstall it (perhaps improperly, I'm not sure) can be left with the registry key [HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/] set with a non-existent path as the "native" string value (which is normally be something like "c:\\cygwin"). When that happens, "rm -rf subdir" fails with this message: C:\temp rm -rf test rm: failed to get attributes of `/': No such file or directory I suspect this is user error in uninstalling Cygwin improperly, but it's still somewhat perplexing to users. Perhaps rm (and other utilities doing whatever it is doing) should be more robust against bad mounts? The version info I see is as follows: C:\temp rm --version rm (GNU coreutils) 6.9 Copyright (C) 2007 Free Software Foundation, Inc. This is free software. You may redistribute copies of it under the terms of the GNU General Public License . There is NO WARRANTY, to the extent permitted by law. Written by Paul Rubin, David MacKenzie, Richard Stallman, and Jim Meyering. Duncan Murdoch -- 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/