Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jan 2012 07:25:11 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r229468 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io
Message-ID:  <201201040725.q047PBgS066018@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Wed Jan  4 07:25:10 2012
New Revision: 229468
URL: http://svn.freebsd.org/changeset/base/229468

Log:
  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.

Modified:
  head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/tst.fds.c

Modified: head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/tst.fds.c
==============================================================================
--- head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/tst.fds.c	Wed Jan  4 07:21:37 2012	(r229467)
+++ head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/tst.fds.c	Wed Jan  4 07:25:10 2012	(r229468)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201040725.q047PBgS066018>