Re: ! O_CREAT

From: Rogier Wolff (R.E.Wolff@BitWizard.nl)
Date: Fri May 12 2000 - 03:42:23 EST


Alexander Viro wrote:
>
>
> On Fri, 12 May 2000, Rogier Wolff wrote:
>
> >
> > Hi,
> >
> > linux-2.3.99pre7-something doesn't provide the right behaviour when a
> > file is opened without O_CREAT: It creates a file even if you didn't
> > ask for it. (I have an application that normally complains that its
> > output file doesn't exist, and I usually run it without first creating
> > the output file, just to make sure I'm not overwriting anything...)
>
> Testcase? I mean, line from strace output. It should never happen -
> open_namei() explicitly goes around the creation code without O_CREAT.

I'm sorry. I have a few hours of work to do on that machine, and
I reverted to 2.2.x for a while because of the higher throughput.

Another machine running 2.3.99-pre3 tells me (correctly):

 open("log", O_RDWR) = -1 ENOENT (No such file or directory)

Maybe I was dreaming, maybe the problem is more recent than pre-3....
(the other one was running pre7-<something>)

                                Roger.

-- 
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2137555 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
*       Common sense is the collection of                                *
******  prejudices acquired by age eighteen.   -- Albert Einstein ********

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon May 15 2000 - 21:00:20 EST