du crashes if .lnk symlink and a folder it points to are named the same, differing only in letter case

Linda Walsh cygwin@tlinx.org
Mon Mar 26 00:30:00 GMT 2012


Ilya Basin wrote:

> I needed that because one git repository has branches named
> "Epam/a" and "epam/b", and git was always creating the "missing" epam
> directory at fetch.
> 
> $ ls -l
> total 0
> drwxr-xr-x+ 1 adminpwd None 0 Mar 25 11:42 Epam
> drwxr-xr-x+ 1 adminpwd None 0 Mar 25 11:42 epam
> 
> why no " -> Epam" part? 'ls' behaves funny too, but at least it
> doesn't crash.
> 
> 
> $ ls -l epam.lnk
> lrwxrwxrwx 1 Users None 4 Mar 13 16:43 epam.lnk -> Epam
> 
> $ du .
> 0       ./Epam
> Aborted (core dumped)

=====
You might try setting going into system properties, advanced, Environment 
Variables and creating an entry (or adding to the original if there is one there 
already) for CYGWIN.  Entries to have in it:\
winsymlinks export    #(+opt) [nodosfilewarning]

I have  a feeling you are seeing probs related to the cygwin hard link emulation
which can by turned off by telling it to use winsymlinks (export tells it to 
export the value to children processes -- nodosfilewarning lowers clutter --
especially when you have domain names. (and have references to paths with 
'domain\\user/xxyz' in them).


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



More information about the Cygwin mailing list