From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: root@chaos.analogic.com
Cc: linux-kernel@vger.kernel.org (Linux kernel)
Subject: Re: File open/create attibutes.
Date: Tue, 14 May 2002 17:43:03 +0100 (BST) [thread overview]
Message-ID: <E177fOB-0008H5-00@the-village.bc.nu> (raw)
In-Reply-To: <Pine.LNX.3.95.1020514113724.2711A-100000@chaos.analogic.com> from "Richard B. Johnson" at May 14, 2002 11:44:44 AM
> If a file exists with attributes, 0644, and it is opened with truncate
> and create with different attributes, it doesn't get those attributes.
> It's only if the file doesn't exist at all that it gets created with
> the new attributes.
This is correct behaviour. See IEEE Std 1003.1-2001. Its explicitly
specified that "If the file exists and is a regular file, and the file
is successfully opened O_RDWR or O_WRONLY, its length shall be truncated
to 0, and the mode and owner shall be unchanged"
prev parent reply other threads:[~2002-05-14 16:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-14 15:44 Richard B. Johnson
2002-05-14 16:20 ` Andreas Schwab
2002-05-14 16:43 ` Alan Cox [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E177fOB-0008H5-00@the-village.bc.nu \
--to=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=root@chaos.analogic.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®