diff options
author | pjd <pjd@FreeBSD.org> | 2012-01-04 07:25:10 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2012-01-04 07:25:10 +0000 |
commit | 65adbd19de1cf01b7323e92512d82a368cec1d1d (patch) | |
tree | a2954368ed02980803bdf94216fa414cb177cc83 /cddl | |
parent | 8525c142e05d7dab13d81fa1446e13e223636607 (diff) | |
download | FreeBSD-src-65adbd19de1cf01b7323e92512d82a368cec1d1d.zip FreeBSD-src-65adbd19de1cf01b7323e92512d82a368cec1d1d.tar.gz |
Add missing file permission to open(O_CREAT) call. This doesn't really matter
here, as we open /dev/null for test purposes, but it is useful for consistency
and further grepping for such bugs.
Diffstat (limited to 'cddl')
-rw-r--r-- | cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/tst.fds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/tst.fds.c b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/tst.fds.c index 2785b51..3cded11 100644 --- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/tst.fds.c +++ b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/tst.fds.c @@ -82,7 +82,7 @@ main(int argc, char *argv[]) fds[n++] = open(file, O_RDWR | O_APPEND | O_CREAT | O_DSYNC | O_LARGEFILE | O_NOCTTY | O_NONBLOCK | O_NDELAY | O_RSYNC | - O_SYNC | O_TRUNC | O_XATTR); + O_SYNC | O_TRUNC | O_XATTR, 0666); fds[n++] = open(file, O_RDWR); (void) lseek(fds[n - 1], 123, SEEK_SET); |