X-Spam-Check-By: sourceware.org Date: Thu, 26 Jul 2007 19:03:22 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: 1.5.24: duplicate directory entries - cygcheck.out (0/1) Message-ID: <20070726170322.GH19692@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Jul 26 12:51, Andrew Schulman wrote: > Some directory entries are appearing twice in ls output. E.g. see lib in > the following output: > > $ ls -li /usr/local > total 0 > 1688849860279750 drwxrwx---+ 2 aschulma Users 0 May 7 14:15 bin > 2251799813802842 drwxrwx---+ 2 aschulma Users 0 May 7 13:45 etc > 562949953541629 drwxrwx---+ 2 aschulma Users 0 May 9 13:19 lib > 562949953541629 drwxrwx---+ 2 aschulma Users 0 May 9 13:19 lib > 4503599627432958 drwxr-xr-x+ 3 aschulma None 0 Apr 30 15:44 src > 1970324837043942 drwxr-xr-x+ 3 aschulma None 0 May 7 13:15 stow > > I've seen this once before. In that case I rm'ed one of the duplicates (I > think it was a symlink), and rm happily complied, leaving the other entry in > place. This makes me think that the bug is in the directory structure, and > not in ls. That happens if you have a symlink and a directory of the same name. The stat buffer will for both of them return the data for the first one, usually the directory. That's the price of using Windows shortcuts as symlinks. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/