From: Eric Sandeen <sandeen@sandeen.net>
To: xfs mailing list <xfs@oss.sgi.com>
Subject: [PATCH] xfstests: add mode to open call in devzero.c, which may have O_CREAT set.
Date: Mon, 24 Nov 2008 11:59:31 -0600 [thread overview]
Message-ID: <492AEB83.5050000@sandeen.net> (raw)
Fedora is catching calls to open which have O_CREAT set w/o a mode.
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
---
Index: xfs-cmds/xfstests/src/devzero.c
===================================================================
--- xfs-cmds.orig/xfstests/src/devzero.c 2005-11-08 20:50:19.000000000 -0600
+++ xfs-cmds/xfstests/src/devzero.c 2008-11-24 10:29:11.211001169 -0600
@@ -74,7 +74,7 @@ main(int argc, char **argv)
path = argv[optind];
- if ((fd = open(path, oflags)) < 0) {
+ if ((fd = open(path, oflags, 0600)) < 0) {
fprintf(stderr,
"error opening \"%s\": %s\n",
path, strerror(errno));
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
reply other threads:[~2008-11-24 17:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=492AEB83.5050000@sandeen.net \
--to=sandeen@sandeen.net \
--cc=xfs@oss.sgi.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