Re: bug with touch t/

2008-03-07 Thread Corinna Vinschen
On Mar 7 06:02, Eric Blake wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > According to Lemke, Michael SZ/HZA-ZIOM1 on 3/7/2008 2:22 AM: > |>> Do you agree? > |> I should add that I'm still rather leaning towards the Linux > | behaviour. > |> I tested this on Solaris 10, and it behave

Re: bug with touch t/

2008-03-07 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Lemke, Michael SZ/HZA-ZIOM1 on 3/7/2008 2:22 AM: |>> Do you agree? |> I should add that I'm still rather leaning towards the Linux | behaviour. |> I tested this on Solaris 10, and it behaves again different. In both |> examples open(2) r

Re: bug with touch t/

2008-03-07 Thread Lemke, Michael SZ/HZA-ZIOM1
On Thu, 6 Mar 2008 16:32:52 +0100, Corinna Vinschen wrote: > On Mar 6 16:27, Corinna Vinschen wrote: > > On Mar 6 14:56, Eric Blake wrote: > > > Corinna Vinschen cygwin.com> writes: > > > > > > > > > > > But the flags are not O_RDONLY|O_CREAT. They are O_WRONLY|O_CREAT. > > > > > > I still t

Re: bug with touch t/

2008-03-06 Thread Corinna Vinschen
On Mar 6 16:27, Corinna Vinschen wrote: > On Mar 6 14:56, Eric Blake wrote: > > Corinna Vinschen cygwin.com> writes: > > > > > > > > But the flags are not O_RDONLY|O_CREAT. They are O_WRONLY|O_CREAT. > > > > I still think Linux is wrong - t/ is not an existing directory, so you > > can't >

Re: bug with touch t/

2008-03-06 Thread Corinna Vinschen
On Mar 6 14:56, Eric Blake wrote: > Corinna Vinschen cygwin.com> writes: > > > > > But the flags are not O_RDONLY|O_CREAT. They are O_WRONLY|O_CREAT. > > I still think Linux is wrong - t/ is not an existing directory, so you can't > claim that an attempt was made to open an existing director

Re: bug with touch t/

2008-03-06 Thread Eric Blake
Corinna Vinschen cygwin.com> writes: > > But the flags are not O_RDONLY|O_CREAT. They are O_WRONLY|O_CREAT. I still think Linux is wrong - t/ is not an existing directory, so you can't claim that an attempt was made to open an existing directory with O_WRONLY. But I guess it is a bit ambigu

Re: bug with touch t/

2008-03-06 Thread Corinna Vinschen
On Mar 6 07:02, Eric Blake wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > According to Corinna Vinschen on 3/6/2008 6:45 AM: > | SUSv3(*) says: > | > | [EISDIR] > | The named file is a directory and oflag includes O_WRONLY or O_RDWR. > | [ENOENT] > | O_CREAT is not set an

Re: bug with touch t/

2008-03-06 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Corinna Vinschen on 3/6/2008 6:45 AM: | SUSv3(*) says: | | [EISDIR] | The named file is a directory and oflag includes O_WRONLY or O_RDWR. | [ENOENT] | O_CREAT is not set and the named file does not exist; or O_CREAT is |

Re: bug with touch t/

2008-03-06 Thread Corinna Vinschen
On Mar 6 06:32, Eric Blake wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > According to Corinna Vinschen on 3/6/2008 6:27 AM: > | > | I examined this situation on Linux. In Linux, touch tries to open t\ > | and open() returns EISDIR. The fact that you see an ENOENT is a result > | o

Re: bug with touch t/

2008-03-06 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Corinna Vinschen on 3/6/2008 6:27 AM: | | I examined this situation on Linux. In Linux, touch tries to open t\ | and open() returns EISDIR. The fact that you see an ENOENT is a result | of touch trying to use other methods to set the ti

Re: bug with touch t/

2008-03-06 Thread Corinna Vinschen
On Mar 6 06:14, Eric Blake wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > According to Corinna Vinschen on 3/5/2008 11:36 AM: > |> $ : > t/ > |> t/: Is a directory. > |> > | > | Should be fixed in the new 1.5.25-11 test release. > > Yes, in 1.5.25-11, it is _correctly_ failing with E

Re: bug with touch t/

2008-03-06 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Corinna Vinschen on 3/5/2008 11:36 AM: |> $ : > t/ |> t/: Is a directory. |> | | Should be fixed in the new 1.5.25-11 test release. Yes, in 1.5.25-11, it is _correctly_ failing with ENOENT. But in CVS, it looks like you changed it to re

Re: bug with touch t/

2008-03-05 Thread Corinna Vinschen
On Mar 4 21:47, Eric Blake wrote: > According to POSIX (and as implemented on Linux): > > $ rm -Rf t > $ touch t/ > touch: setting times of `t/': No such file or directory > $ : > t/ > t/: Is a directory. > > > The ENOENT failure is correct, since you are using the syntax to open (or > create)

bug with touch t/

2008-03-04 Thread Eric Blake
According to POSIX (and as implemented on Linux): $ rm -Rf t $ touch t/ touch: setting times of `t/': No such file or directory $ : > t/ t/: Is a directory. The ENOENT failure is correct, since you are using the syntax to open (or create) a directory but are not going through mkdir. However, o