All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfstests: add mode to open call in devzero.c, which may have O_CREAT set.
@ 2008-11-24 17:59 Eric Sandeen
  0 siblings, 0 replies; only message in thread
From: Eric Sandeen @ 2008-11-24 17:59 UTC (permalink / raw)
  To: xfs mailing list

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-24 17:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-24 17:59 [PATCH] xfstests: add mode to open call in devzero.c, which may have O_CREAT set Eric Sandeen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.