Re: cygwin-1.5.19-2: mkdir returns inconsistent errno

2006-01-28 Thread Corinna Vinschen
On Jan 28 13:06, Alex Riesen wrote: > Which still wont make a portable alternative any time soon. > I'll go with stat(2), including all the problems it has. > Still, it'd be nice of cygwin to follow linux behaviour here. Since Linux compatibility is a major goal for us, I applied a change to Cygwi

Re: cygwin-1.5.19-2: mkdir returns inconsistent errno

2006-01-28 Thread Alex Riesen
Eric Blake, Fri, Jan 27, 2006 23:30:40 +0100: > According to Alex Riesen on 1/27/2006 11:26 AM: > > This was a bit prematurely. There is a big problem with this aproach: > > it changes current directory of the process. So you can't really use > > it in multithreaded or signalled environment. > > So

Re: cygwin-1.5.19-2: mkdir returns inconsistent errno

2006-01-27 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Alex Riesen on 1/27/2006 11:26 AM: > > This was a bit prematurely. There is a big problem with this aproach: > it changes current directory of the process. So you can't really use > it in multithreaded or signalled environment. > So chdir

Re: cygwin-1.5.19-2: mkdir returns inconsistent errno

2006-01-27 Thread Alex Riesen
Alex Riesen, Thu, Jan 26, 2006 17:21:21 +0100: > > > > > This is highly unexpected, does not match linux behaviour > > > > > (it returns EEXIST), and actually breaks git (git clone, > > > > > creation of pathnames, to be precise). > > > > > > > > Then git has a bug. Report it there. To be portabl

Re: cygwin-1.5.19-2: mkdir returns inconsistent errno

2006-01-26 Thread Alex Riesen
On 1/26/06, Eric Blake <[EMAIL PROTECTED]> wrote: > > > > This is highly unexpected, does not match linux behaviour (it returns > > > > EEXIST), > > > > and actually breaks git (git clone, creation of pathnames, to be > > > > precise). > > > > > > Then git has a bug. Report it there. To be port

Re: cygwin-1.5.19-2: mkdir returns inconsistent errno

2006-01-26 Thread Eric Blake
> > > This is highly unexpected, does not match linux behaviour (it returns > EEXIST), > > > and actually breaks git (git clone, creation of pathnames, to be precise). > > > > Then git has a bug. Report it there. To be portable > > when making pathnames, you must first check > > for directory ex

Re: cygwin-1.5.19-2: mkdir returns inconsistent errno

2006-01-26 Thread Alex Riesen
On 1/26/06, Eric Blake <[EMAIL PROTECTED]> wrote: > > mkdir (also syscall) return "Permission denied" when its argument refers to > > a mountpoint at the top of windows drive (probably also a windows mount, > > I haven't tried). > > For example: > > $ mount d: /d > > $ mkdir / > > mkdir: cannot cr

Re: cygwin-1.5.19-2: mkdir returns inconsistent errno

2006-01-26 Thread Eric Blake
> mkdir (also syscall) return "Permission denied" when its argument refers to > a mountpoint at the top of windows drive (probably also a windows mount, > I haven't tried). > For example: > $ mount d: /d > $ mkdir / > mkdir: cannot create directory `/': File exists > $ mkdir /d > mkdir: cannot cre

cygwin-1.5.19-2: mkdir returns inconsistent errno

2006-01-26 Thread Alex Riesen
mkdir (also syscall) return "Permission denied" when its argument refers to a mountpoint at the top of windows drive (probably also a windows mount, I haven't tried). For example: $ mount d: /d $ mkdir / mkdir: cannot create directory `/': File exists $ mkdir /d mkdir: cannot create directory `/d'