| To: | xfs mailing list <xfs@xxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH] xfstests: add mode to open call in devzero.c, which may have O_CREAT set. |
| From: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
| Date: | Mon, 24 Nov 2008 11:59:31 -0600 |
| Cc: | Barry Naujok <bnaujok@xxxxxxx> |
| User-agent: | Thunderbird 2.0.0.16 (X11/20080723) |
Fedora is catching calls to open which have O_CREAT set w/o a mode.
Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxxx>
---
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));
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] xfstests: fix buffer overflow in lstat64.c, Christoph Hellwig |
|---|---|
| Next by Date: | Re: Extreme slowness with xfs [WAS: Re: Slowness with new pc], Stian Jordet |
| Previous by Thread: | fatal error -- bad magic # (0x0) for directory data block (bno 0 fsbno 7), . . |
| Next by Thread: | TAKE - xfstests: add mode to open call in devzero.c, which may have O_CREAT set., Barry Naujok |
| Indexes: | [Date] [Thread] [Top] [All Lists] |