Skip to contentSkip to conversation

xfstests: add mode to open call in devzero.c, which may have O_CREAT set.

PATCH New Eric Sandeen 1 participant 1 message Nov 24, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfstests: add mode to open call in devzero.c, which may have O_CREAT set.

Fedora is catching calls to open which have O_CREAT set w/o a mode.

---

xfstests/src/devzero.c +1 -1
Index: xfs-cmds/xfstests/src/devzero.c
===================================================================
@@ -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
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs