]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFstable/10 r290580:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 9 Nov 2015 07:28:17 +0000 (07:28 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 9 Nov 2015 07:28:17 +0000 (07:28 +0000)
commitb7c5cbc00fa6e80620f763e07c3ce255921ffe74
tree2b7c20cfa1ebc2033acf8a5b04018ba341c52177
parentf271cf4110d2e4749e7e5f8054f76f4d593bee59
MFstable/10 r290580:

MFC r290190,r290251:

r290190:

Fix compiler warnings with open_to_operation.c

Other sidenotes:
- Remove unused variables with main(..)
- Convert errx/exit with -1 to errx/exit with 1
- Fix a bogus test in try_directory_open
  (expected_errno == expected_errno -> errno == expected_errno) [*]
- Fix some warnings related to discarded qualifiers
- Remove a bogus else-statement at the end of check_mmap_exec(..) in the
  successful case. mmap(2), POSIX, Linux, etc all don't state what the
  behavior is when mixing O_WRONLY + PROT_EXEC, so assume success for now to
  get the test program to pass again.

PR: 201286 [*]
Submitted by: David Binderman <dcb314@hotmail.com>
Sponsored by: EMC / Isilon Storage Division

r290251:

Use nitems(x) instead of sizeof(x)/sizeof(x[0])

Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/9@290581 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
tools/regression/security/open_to_operation/Makefile
tools/regression/security/open_to_operation/open_to_operation.c