From nobody Fri Jun 17 19:38:27 2022 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 289FB85B457; Fri, 17 Jun 2022 19:38:30 +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 4LPq8h0T8Lz3QPJ; Fri, 17 Jun 2022 19:38:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655494708; 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=8Fv2rh8t+zpfxPHk3HuRopLzUXSBTw9IMhb93LCoKko=; b=ioIzFlrvKnylFJ0kfW2zB/zH7VvUh4QCom35jqzwoQcQ/Gt0V+uLkvCzikAq9wKzDeVeLB c6Ef28pQosbKgHbDzo7Ft/SOuXYdtTyiEFZUb7a7eN4az2OANNwtUlVBosYuGQVYmsy5vJ R24MD0UJrTAk0sHac2g90yZ5aAySssccQxCvIHlGj5+JhqZlSgjdyQqFtpBNK4d5iQP+uj R4kM3ZM+1rviOY5eUHktRnvwMUHQNfdPS3vsXatUPsqyfa6iC/vEju7bbdfG/l/V1RjXEj 818Om7X6mt+Nc/61NUeOnOh1Trd8qwNEvC2tIMbfTZ1s6rtwf0QazogrqKC76Q== 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 4B8FB25C46; Fri, 17 Jun 2022 19:38:27 +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 25HJcRHd014701; Fri, 17 Jun 2022 19:38:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25HJcRZn014700; Fri, 17 Jun 2022 19:38:27 GMT (envelope-from git) Date: Fri, 17 Jun 2022 19:38:27 GMT Message-Id: <202206171938.25HJcRZn014700@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Chagin Subject: git: fd1b7d25194a - stable/13 - linux_linkat: Don't invert AT_* flags. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/stable/13 X-Git-Reftype: branch X-Git-Commit: fd1b7d25194aed3b8ca76f76b7a3b9f70882a8e3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655494708; 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=8Fv2rh8t+zpfxPHk3HuRopLzUXSBTw9IMhb93LCoKko=; b=vcC4OuzvKuZeeteynzf/GBZvQuarIJAycWaQ5/AOiSr3QxDjRny+APzEsIpc377u1tTAvG kYc3utAgxyBFfBJl1W8R3jTVmAFKsotGBEdpLaQWh6pZE1COtd/nj1v39algmkfERBBSr0 o/DJb4IaKFRuIjAHZMnQ79OBomPoLD6ccNa7sDKfilsoZFV5fHSHy0J5KO0qza0mBoeN/2 g+xbcDYbhqU09KBzjMoS6E4+ZQjQnJGR/UWMJ4m9STG5mPIq7140mTKKq7tqWR2XayfVIT DV8NN01vrK9e323zmwNbB47B4eYzVtOI/j7Dvuu6mbGsOvcDH4+3wuyhnLsccA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655494708; a=rsa-sha256; cv=none; b=uzVRbqcGpSmv+jcOLCVRDzQQ8P1tO76m9J5Qe8VYaxqZ+lhNF7INHP905mNMQ3pn8t7VZ1 fZ3d/c/IKnWqCq86LSK13MKm6lUD+xne8x5WRAZ3kAmyZzMtW/Ujrh4zPBZvOf4vbqgDZR uE+bqmuKrUu5+zMtMYHHX7yRSV8QyitaN/OCv+9niMuOHuSqlCnMl7J/0FpKtaGfKGixfY A4hNIjKv3ar8U4xzUd/uIIW7ptF5j7DjLSfHDrXqeQUixBwHszCjRr1z8TkRIZOaSUhJke 6OipRY61RRmiuufqtPbP6diIta8DA91cHMESlzThPavoPGqNXRtICSjoHU/OCQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=fd1b7d25194aed3b8ca76f76b7a3b9f70882a8e3 commit fd1b7d25194aed3b8ca76f76b7a3b9f70882a8e3 Author: John Baldwin AuthorDate: 2021-11-17 23:51:06 +0000 Commit: Dmitry Chagin CommitDate: 2022-06-17 19:33:38 +0000 linux_linkat: Don't invert AT_* flags. Reviewed by: kib Sponsored by: The University of Cambridge, Google Inc. Differential Revision: https://reviews.freebsd.org/D33048 (cherry picked from commit a8d885296a9dc517e731723081c83d97d2aa598f) --- sys/compat/linux/linux_file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index a1146c6a195a..a076c849aec8 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -1170,9 +1170,9 @@ linux_linkat(struct thread *td, struct linux_linkat_args *args) if (args->flag & ~(LINUX_AT_SYMLINK_FOLLOW | LINUX_AT_EMPTY_PATH)) return (EINVAL); - flag = (args->flag & LINUX_AT_SYMLINK_FOLLOW) == 0 ? AT_SYMLINK_FOLLOW : + flag = (args->flag & LINUX_AT_SYMLINK_FOLLOW) != 0 ? AT_SYMLINK_FOLLOW : 0; - flag |= (args->flag & LINUX_AT_EMPTY_PATH) == 0 ? AT_EMPTY_PATH : 0; + flag |= (args->flag & LINUX_AT_EMPTY_PATH) != 0 ? AT_EMPTY_PATH : 0; olddfd = (args->olddfd == LINUX_AT_FDCWD) ? AT_FDCWD : args->olddfd; newdfd = (args->newdfd == LINUX_AT_FDCWD) ? AT_FDCWD : args->newdfd;