svn commit: r317497 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Thu Apr 27 11:22:14 UTC 2017
Author: pho
Date: Thu Apr 27 11:22:13 2017
New Revision: 317497
URL: https://svnweb.freebsd.org/changeset/base/317497
Log:
Ensure that open(2) and mmap(2) flags are in sync.
Sponsored by: Dell EMC Isilon
Modified:
user/pho/stress2/misc/rdwr.sh
Modified: user/pho/stress2/misc/rdwr.sh
==============================================================================
--- user/pho/stress2/misc/rdwr.sh Thu Apr 27 11:19:56 2017 (r317496)
+++ user/pho/stress2/misc/rdwr.sh Thu Apr 27 11:22:13 2017 (r317497)
@@ -75,7 +75,7 @@ main(int argc, char **argv)
if ((fd1 = open("/dev/null", O_RDWR, 0)) == -1)
err(1, "open /dev/null");
- if ((fd2 = open("/dev/zero", O_RDONLY)) == -1)
+ if ((fd2 = open("/dev/zero", O_RDWR)) == -1)
err(1, "open /dev/zero");
if (sizeof(size_t) == sizeof(int32_t))
More information about the svn-src-user
mailing list