NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: procfs difference between NetBSD and Linux



Jaromir wrote:

> > On 3/06/21 9:58 am, Mark Davies wrote:
> > > done - https://bugzilla.samba.org/show_bug.cgi?id=14727
> >
> > And looks like they are throwing it back as a kernel bug
> >
> > https://bugzilla.samba.org/show_bug.cgi?id=14727#c3
>
> O_CREAT really shouldn't cause the open to fail if the file already
> exists regardless of filesystem, so they are right.

I agree with Jaromir here.  From the link in the samba bug, the SUSv3
open() page entry for the O_CREAT flag starts with:

    O_CREAT
        If the file exists, this flag has no effect except as noted
        under O_EXCL below.

Cheers,
Simon.


Home | Main Index | Thread Index | Old Index