From: Barry Naujok Date: Tue, 25 Nov 2008 03:10:07 +0000 (+0000) Subject: Fedora is catching calls to open which have O_CREAT set w/o a mode. X-Git-Tag: v1.1.0~345 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=4be0d16663d6e449d90829e9aba8dba1db912ad8;p=xfstests-dev.git Fedora is catching calls to open which have O_CREAT set w/o a mode. Merge of master-melb:xfs-cmds:32535a by kenmcd. Fedora is catching calls to open which have O_CREAT set w/o a mode. --- diff --git a/src/devzero.c b/src/devzero.c index cd6dc88c..acdc0a69 100644 --- a/src/devzero.c +++ b/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));