Received: by mail.netbsd.org (Postfix, from userid 605) id E5BAA84DBF; Wed, 22 Apr 2020 18:18:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 6A1F584D82 for ; Wed, 22 Apr 2020 18:18:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id ubANEpicsykZ for ; Wed, 22 Apr 2020 18:18:27 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id F16E584CE9 for ; Wed, 22 Apr 2020 18:18:26 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id DFF6BFB27; Wed, 22 Apr 2020 18:18:26 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Wed, 22 Apr 2020 18:18:26 +0000 From: "Martin Husemann" Subject: CVS commit: [netbsd-8] src To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20200422181826.DFF6BFB27@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Martin Husemann" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: martin Date: Wed Apr 22 18:18:26 UTC 2020 Modified Files: src/lib/libc/sys [netbsd-8]: fdatasync.2 src/sys/kern [netbsd-8]: vfs_syscalls.c Log Message: Pull up following revision(s) (requested by gdt in ticket #1534): sys/kern/vfs_syscalls.c: revision 1.544 lib/libc/sys/fdatasync.2: revision 1.17 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.16.56.1 src/lib/libc/sys/fdatasync.2 cvs rdiff -u -r1.516 -r1.516.2.1 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.