-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Corinna Vinschen on 8/27/2005 2:44 AM:
>
> That's a result of attaching .exe to symlinks. When iterating over
> paths, the .exe suffix is only checked on the last component, never
> on inner (== directory) components. This makes sense,
On Aug 26 14:30, Eric Blake wrote:
> $ readlink u
> x
> $ ls x*
> x.exe
> $ ls -lF x
> - -rwxr-xr-x 1 eblake None 13961 Mar 10 06:54 x*
> $ file x# See below for more on this...
> x: writable, executable, regular file, no read permission
> $ ./myreadlink u/blah
> 'u/blah': NULL, 2 No such file
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Thanks for your cleanup efforts! 20050826 is much better. All that
remains is the regression from 1.5.18, where readlink(NULL, buf) set
buf[0], but now it doesn't.
According to Corinna Vinschen on 8/26/2005 6:32 AM:
>>Also, readlink("linktofile/x",
> >Because POSIX states that buf is indeterminate on error, and
> >because Corrina's patch caused a regression (ie. 1.5.18 was
> >setting buf[0] to 0 on error). QofI states that we might as
> >well make the indeterminate buffer useful, in case a user
> >forgets to check the return value being NULL
On Fri, Aug 26, 2005 at 02:56:46PM +, Eric Blake wrote:
>> On Fri, Aug 26, 2005 at 06:17:13AM -0600, Eric Blake wrote:
>> >While you're at it, fix realpath(NULL, buf) to set buf[0]='\0', instead of
>> >leaving garbage there.
>>
>> What's the rationale for touching buf when realpath is returnin
On Fri, Aug 26, 2005 at 03:51:59PM +0100, Dave Korn wrote:
>Original Message
>>From: Christopher Faylor
>>Sent: 26 August 2005 15:48
>
>> On Fri, Aug 26, 2005 at 06:17:13AM -0600, Eric Blake wrote:
>>> While you're at it, fix realpath(NULL, buf) to set buf[0]='\0', instead
>>> of leaving ga
> > On Fri, Aug 26, 2005 at 06:17:13AM -0600, Eric Blake wrote:
> > >While you're at it, fix realpath(NULL, buf) to set buf[0]='\0', instead of
> > >leaving garbage there.
> >
> > What's the rationale for touching buf when realpath is returning an error
> > and setting EINVAL?
>
> Because POSIX s
> On Fri, Aug 26, 2005 at 06:17:13AM -0600, Eric Blake wrote:
> >While you're at it, fix realpath(NULL, buf) to set buf[0]='\0', instead of
> >leaving garbage there.
>
> What's the rationale for touching buf when realpath is returning an error
> and setting EINVAL?
Because POSIX states that buf i
Original Message
>From: Dave Korn
>Sent: 26 August 2005 15:52
> Original Message
>> From: Christopher Faylor
>> Sent: 26 August 2005 15:48
>
>> On Fri, Aug 26, 2005 at 06:17:13AM -0600, Eric Blake wrote:
>>> While you're at it, fix realpath(NULL, buf) to set buf[0]='\0', instead
>
Original Message
>From: Christopher Faylor
>Sent: 26 August 2005 15:48
> On Fri, Aug 26, 2005 at 06:17:13AM -0600, Eric Blake wrote:
>> While you're at it, fix realpath(NULL, buf) to set buf[0]='\0', instead
>> of leaving garbage there.
>
> What's the rationale for touching buf when realp
On Fri, Aug 26, 2005 at 06:17:13AM -0600, Eric Blake wrote:
>While you're at it, fix realpath(NULL, buf) to set buf[0]='\0', instead of
>leaving garbage there.
What's the rationale for touching buf when realpath is returning an error
and setting EINVAL?
cgf
--
Unsubscribe info: http://cygwi
Volker Quetschke wrote:
> > If I change the first line to:
> > #! /bin/bash
> > it surprisingly works with both snapshots.
> The surprising thing is that bash.exe = sh.exe (bash version 3.0-11).
It's not surprising, because bash sets itself in posix mode when invoked
as sh. It does 'cd' differen
Volker Quetschke wrote:
I just stumbeled over the following problem:
$ cat shelltest.sh
#! /bin/sh
ANT_HOME="/cygdrive/c/apache-ant-1.6.5/bin/.."
ANT_HOME=`cd "$ANT_HOME" && pwd`
With cygwin1-20050825.dll:
$ ./shelltest.sh
./shelltest.sh: line 3: cd: /cygdrive/c/apache-ant-1.6.5/bin/..: No such
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Eric Blake on 8/26/2005 6:17 AM:
> I also noticed that realpath("c:..", buf) now returns "c:", rather than
> "/cygdrive" - I guess it comes down to the choice of whether cygwin has 2
> roots or 28 roots. I prefer 2 roots (so that the pare
On Aug 26 06:17, Eric Blake wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> According to Corinna Vinschen on 8/26/2005 3:07 AM:
> >>This is apparently due to Corinna's latest patch which attempts to get
> >>realpath working. bash is calling cygwin_convert_to_full_posix_path
> >>on th
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Corinna Vinschen on 8/26/2005 3:07 AM:
>>This is apparently due to Corinna's latest patch which attempts to get
>>realpath working. bash is calling cygwin_convert_to_full_posix_path
>>on the /cygdrive/... above and the return value now is
On Aug 26 01:26, Christopher Faylor wrote:
> On Fri, Aug 26, 2005 at 12:31:07AM -0400, Volker Quetschke wrote:
> >I just stumbled over the following problem:
> >
> >$ cat shelltest.sh
> >#! /bin/sh
> >ANT_HOME="/cygdrive/c/apache-ant-1.6.5/bin/.."
> >ANT_HOME=`cd "$ANT_HOME" && pwd`
> >
> >With cyg
On Fri, Aug 26, 2005 at 12:31:07AM -0400, Volker Quetschke wrote:
>I just stumbled over the following problem:
>
>$ cat shelltest.sh
>#! /bin/sh
>ANT_HOME="/cygdrive/c/apache-ant-1.6.5/bin/.."
>ANT_HOME=`cd "$ANT_HOME" && pwd`
>
>With cygwin1-20050825.dll:
>$ ./shelltest.sh
>./shelltest.sh: line 3:
Brian Dessent wrote:
Volker Quetschke wrote:
#! /bin/sh
ANT_HOME="/cygdrive/c/apache-ant-1.6.5/bin/.."
ANT_HOME=`cd "$ANT_HOME" && pwd`
[...]
If I change the first line to:
#! /bin/bash
it surprisingly works with both snapshots.
Does the 'bin' subdirectory exist?
Yes.
$ ll /cygdrive/c/apac
Volker Quetschke wrote:
> #! /bin/sh
> ANT_HOME="/cygdrive/c/apache-ant-1.6.5/bin/.."
> ANT_HOME=`cd "$ANT_HOME" && pwd`
> [...]
> If I change the first line to:
> #! /bin/bash
> it surprisingly works with both snapshots.
Does the 'bin' subdirectory exist? If not then you're probably running
int
I just stumbeled over the following problem:
$ cat shelltest.sh
#! /bin/sh
ANT_HOME="/cygdrive/c/apache-ant-1.6.5/bin/.."
ANT_HOME=`cd "$ANT_HOME" && pwd`
With cygwin1-20050825.dll:
$ ./shelltest.sh
./shelltest.sh: line 3: cd: /cygdrive/c/apache-ant-1.6.5/bin/..: No such file
or directory
With
21 matches
Mail list logo