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

2012-03-26 Thread Corinna Vinschen
On Mar 25 17:29, Linda Walsh wrote:
> 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]

This problem has nothing to do with dosfilewarning.

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

Sigh.  This problem has nothing to do with hardlinks.  And it has
nothing to do with the winsymlinks option, unless you count in the fact
that the symlink in question is a .lnk style symlink.  And the
winsymlink option has nothing to do with hardlinks at all.  There's a
reason the option is called winsymlink, not winhardlinks.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

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



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

2012-03-26 Thread Corinna Vinschen
On Mar 25 12:35, 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?

Because your system is set to case insensitive.  See the User's Guide:
http://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-casesensitive

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

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



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

2012-03-25 Thread Linda Walsh

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



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

2012-03-25 Thread Ilya Basin
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)

crash caused by abort() called from here:

coreutils-8.15/lib/fts-cycle.c:
static void
leave_dir (FTS *fts, FTSENT *ent)
{
  struct stat const *st = ent->fts_statp;
  if (fts->fts_options & (FTS_TIGHT_CYCLE_CHECK | FTS_LOGICAL))
{
  struct Active_dir obj;
  void *found;
  obj.dev = st->st_dev;
  obj.ino = st->st_ino;
  found = hash_delete (fts->fts_cycle.ht, &obj);
  if (!found)
abort (); <-- here


cygcheck.out
Description: Binary data
--
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