Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Recent changes to truncate(2) swapped the ordering of some validations | anton | 2022-05-24 | 1 | -2/+2 |
| | | | | | | | causing EACCESS as opposed of ESDIR to be returned while trying to truncate a directory as a user lacking write permissions to the same directory. As this behavior is reasonable, change the truncate directory from /etc/ to /tmp which makes the test pass both as root and non-root. | ||||
* | remove a couple hundred sys/param.h includes in userland code, and | deraadt | 2021-12-13 | 1 | -4/+1 |
| | | | | | | also whack some sys/cdefs.h early includes which is such a brutally bad pattern ok bluhm mbuhl | ||||
* | For open/openat, if the flags parameter does not contain O_CREAT, the | deraadt | 2021-10-24 | 1 | -2/+2 |
| | | | | | | | | | | | | | 3rd (variadic) mode_t parameter is irrelevant. Many developers in the past have passed mode_t (0, 044, 0644, or such), which might lead future people to copy this broken idiom, and perhaps even believe this parameter has some meaning or implication or application. Delete them all. This comes out of a conversation where tb@ noticed that a strange (but intentional) pledge behaviour is to always knock-out high-bits from mode_t on a number of system calls as a safety factor, and his bewilderment that this appeared to be happening against valid modes (at least visually), but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef. ok millert | ||||
* | Import NetBSD system call regression tests. They were written with | bluhm | 2019-11-19 | 1 | -0/+183 |
ATF (Automated Testing Framework), so we use a small wrapper to map it to our bsd.regress.mk framework. Only half of the 80 NetBSD tests have been taken, the others need more work to adapt. Of them 34 syscall tests pass. Moritz Buhl ported the tests to OpenBSD. |