Module Name: src Committed By: gdt Date: Wed Mar 25 18:08:34 UTC 2020
Modified Files: src/lib/libc/sys: fdatasync.2 src/sys/kern: vfs_syscalls.c Log Message: Relax fdatasync restriction that fd be writable The restriction that a fd passed to fdatasync(2) must be writable was added in 2003 in order to comply with POSIX. Since then, POSIX has removed that requirement, and POSIX-valid programs have been therefore encountering errors on NetBSD. Patch by Paul Ripke after discussion on netbsd-users. Issue discovered with pkgsrc/databases/mongodb3 as used by pkgsrc/net/unifi. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/lib/libc/sys/fdatasync.2 cvs rdiff -u -r1.543 -r1.544 src/sys/kern/vfs_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.