From: Andreas Schwab <schwab@suse.de>
To: root@chaos.analogic.com
Cc: Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: File open/create attibutes.
Date: Tue, 14 May 2002 18:20:15 +0200 [thread overview]
Message-ID: <jeznz23dmo.fsf@sykes.suse.de> (raw)
In-Reply-To: <Pine.LNX.3.95.1020514113724.2711A-100000@chaos.analogic.com>
"Richard B. Johnson" <root@chaos.analogic.com> writes:
|> Hello,
|>
|> 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.
|>
|> I think this is a bug.
POSIX disagrees:
O_CREAT If the file exists, this flag has no effect except as
noted under O_EXCL below.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2002-05-14 16:20 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 [this message]
2002-05-14 16:43 ` Alan Cox
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=jeznz23dmo.fsf@sykes.suse.de \
--to=schwab@suse.de \
--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®