From nobody Mon May 23 10:20:18 2022 X-Original-To: dev-commits-src-main@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 5D7461B393E7; Mon, 23 May 2022 10:20:20 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L6CyC2FX8z3FfX; Mon, 23 May 2022 10:20:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653301219; 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=k1U2mP7VFJoq2PukhM8t4DIpCAXCtFPCsJ1tVT0eNlA=; b=jZdaDRy7JiZuHIcIgNH5BnHWBYCxKSXPlFhl9HQXkXa/EwReTFFBBshjHGpbxUqr90Qfl0 +RzCtW4i7Bg6a1KoJHmPaa7yc/IpFBc5dNjPsDV1PcGLJxcqXMcUMcN4LdsU8roBhZbvOs w+mwfo5pDrl4bOQfpm0DmcuInYNlof6OFv1yff6LfNSdQKEnVOXVLKsSpn0hU567QI2qSx +StcIBOe18WqQjCM0o8G0zOkdHLu87Om492HiI8pw/wdKyzY3J3XIfVYW/8PzSJOBqCbSw hmNs0+UlltCHc51a5SuohyJprEX7CKgJ+ea8pKCXeV8caAOLfY4pTQ+dhs0iJg== 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 0E15E6006; Mon, 23 May 2022 10:20:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 24NAKITx031158; Mon, 23 May 2022 10:20:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24NAKIXo031152; Mon, 23 May 2022 10:20:18 GMT (envelope-from git) Date: Mon, 23 May 2022 10:20:18 GMT Message-Id: <202205231020.24NAKIXo031152@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dmitry Chagin Subject: git: 1bb3faed29cf - main - linux(4): Fix unlinkat() after a125ed50 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1bb3faed29cf1f451bcdc396eaa4f8cc476f9159 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653301219; 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=k1U2mP7VFJoq2PukhM8t4DIpCAXCtFPCsJ1tVT0eNlA=; b=S5z/O5oEHoT6MYZjm/NjY+rUeL9zcOY4ca84bEOwz/SSv/c+6WO+QXA0ZQjmH7aGAB1WWU AflhEv03bTljGh7/nMBrF+9rwOQISJQO53TkpCFYFZL8StZ7/gjyHvBi+EKVpmspw2whjS SyS8y+yWuNm6itnhENCR7YpAI9KVug3sy0A35yq3S5vfZ9bEZ3dSELdbmKMNlnXcJiUMU3 JlLNfzlHL82zeycHCDWAlzH4HOfAh3iA6dqzuyEYg4L/WT84ernw5o8wL67u56XPtF/Fec Bk5FrbPaGsZfFW0iWxK/UshMalOQ/jB99fMsLl7OehyRaxK42majeW443tzHLg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653301219; a=rsa-sha256; cv=none; b=KpC8QojxPqsmzt2Cp88YBs1dKYdyhWK+LAhkWd5kgkqqwHBdLOJXxeIOvw2Ft/HR0886K2 Hrr7+zTATyLmj0lS9K7Pse0jAEwbdJY2w1iifu3yLb18L3KiJ5GhA2O++VQysz8fqms5Br lyr3qQ1MeBPcEGDRxvA0fdAKxbv04pAujXJKXVXL6tnf4YQ7NIXpGLVqOVvzUcCDsRyiKQ IE+uwOlKkM9N606tO7GABZBIKGjXC+OMaw8uD2PSNbDE8StzmW2LFxw5fzYYnJiZWbqoys QK5sTgYVQBSpSsfxuy/J7i/uaBEVlTzgQVGD0oxS1L8yHtUnhnjgJo9iIV8DxA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=1bb3faed29cf1f451bcdc396eaa4f8cc476f9159 commit 1bb3faed29cf1f451bcdc396eaa4f8cc476f9159 Author: Dmitry Chagin AuthorDate: 2022-05-23 10:19:34 +0000 Commit: Dmitry Chagin CommitDate: 2022-05-23 10:19:34 +0000 linux(4): Fix unlinkat() after a125ed50 MFC after: 2 weeks --- sys/compat/linux/linux_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 2664b38ad1ad..3b712cf71e60 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -778,7 +778,7 @@ linux_unlinkat_impl(struct thread *td, enum uio_seg pathseg, const char *path, if (error == EPERM && !(args->flag & LINUX_AT_REMOVEDIR)) { /* Introduce POSIX noncompliant behaviour of Linux */ if (kern_statat(td, AT_SYMLINK_NOFOLLOW, dfd, path, - UIO_SYSSPACE, &st, NULL) == 0 && S_ISDIR(st.st_mode)) + pathseg, &st, NULL) == 0 && S_ISDIR(st.st_mode)) error = EISDIR; } return (error);