From nobody Tue Aug 27 22:09:55 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WthYJ64y1z5MTpB; Tue, 27 Aug 2024 22:09:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WthYJ0Lq9z55VT; Tue, 27 Aug 2024 22:09:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724796596; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=U4IY0aUQzx6RhDxXJwKgRJvTyKjLgHMSu9egT/us5SU=; b=Ks+rKNqzlfASaXc89f5pzgZyvWct8KvbanPlrN3ZQTpGCUNPgAxOQF+/SVZkTljN2Pw3ip 73PB9nOAPwHHaD0VgMfdLicBIBu8uJK9Knieb8oTv3AMiX3YlbaRlvt78P6ReYtvlrEFHe 5/C59LX1PJWQ8b7mwKrevK5XEChPRGSK5e/sJSzXoFC6a/E8hJTzeH9L/L9PB+P0ir4g8y DmbysLUdlltpMLsz54nKOznOEqfKjOr480XZ6WRwdAuLW2FOK5tbdgr4Eyx2qlqjrz1RhS pSEholqL57QerZ6hA0YBL0s3YA/pLjdIEDxpG1XTWTn0r0BQs8h0tNZBEh3Gxg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724796596; a=rsa-sha256; cv=none; b=J3pADerUAH7k7WB6Z57yyu19mh5yZkCBr0Tmrv3NsFskhX/nQ5g6j2VmGMpUZQficDhM+P od+dWkEK5V4aPwoY0zgBu5CPF+2MxJyWQc/+3uH501a/AnjuS2M0cCzuLZkjGZYa0Elf5n B62Fkjlw3cNMjxYxC22gdf3+we03ApV5EF7PMjg60Jj8zwmOTZijDoGwYfzehvqrwTNhCs p8PVXSmpsYRoRF4MCO4zS1D/WsCq2POqOisfcpZWALvc7kqACxrsgUrprT4nYg3Mk+7AJJ tjOgzz4x7hsC8n+MhrEfpaIwmB3s8iArvuQ25lRpyB+IGjz9rLpzrDHNSJdLoA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724796596; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=U4IY0aUQzx6RhDxXJwKgRJvTyKjLgHMSu9egT/us5SU=; b=JK5jK3XwOdb9C0VUI5JFxMbefox8I4Y78+m9FlrmPVbxpFEvUufMRCXJkErYP0ir1UYqgb ifBDNSzlrnAkpdHQiTrJiI7RCEqGr9JOOAYlIFEo5cNEegHYayzLdQ5LinwoOvOt7O0tht sxunppIWeIaGof3rdUKU8BBPRnsRd0ltzU6f214vtw2FUW/R1o7b+Ixm4Q4n3nu0TwB+2T tFvUInRrd2dS9lLNILits6lcg9mWAH2onNDqAVF7hdmLr1QN1M9YnWwRsGs7H5bc+dcCet mPxDvihH/xaOMRHOKjZLgwUjx5UNw6DX9L7IVBWP57s4OLpnhT7pwlU4K9hCEQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WthYH6tyVz16qM; Tue, 27 Aug 2024 22:09:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47RM9tTj002848; Tue, 27 Aug 2024 22:09:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47RM9tJp002845; Tue, 27 Aug 2024 22:09:55 GMT (envelope-from git) Date: Tue, 27 Aug 2024 22:09:55 GMT Message-Id: <202408272209.47RM9tJp002845@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 02c23c3b5ac9 - main - open(2): Extend EINVAL's description List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 02c23c3b5ac9c9c1115c8b892034bb5d67b05c06 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=02c23c3b5ac9c9c1115c8b892034bb5d67b05c06 commit 02c23c3b5ac9c9c1115c8b892034bb5d67b05c06 Author: Jose Luis Duran AuthorDate: 2024-08-27 02:23:14 +0000 Commit: Konstantin Belousov CommitDate: 2024-08-27 22:09:33 +0000 open(2): Extend EINVAL's description If O_CREAT is specified, the last component of the path argument can contain invalid characters, and return EINVAL on some file systems. PR: 281033 Differential revision: https://reviews.freebsd.org/D46450 MFC after: 1 week --- lib/libsys/open.2 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/libsys/open.2 b/lib/libsys/open.2 index 220561cc5683..4cdceb336532 100644 --- a/lib/libsys/open.2 +++ b/lib/libsys/open.2 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd January 29, 2024 +.Dd August 25, 2024 .Dt OPEN 2 .Os .Sh NAME @@ -580,6 +580,12 @@ and .Dv O_EXEC or .Dv O_SEARCH . +.It Bq Er EINVAL +.Dv O_CREAT +is specified, +and the last component of the +.Fa path +argument is invalid on the file system on which the file is being created. .It Bq Er EBADF The .Fa path