This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 1.5.24: duplicate directory entries - cygcheck.out (0/1)


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]