From nobody Thu Sep 28 14:07:36 2023 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 4RxFfx1Qqzz4tq9C; Thu, 28 Sep 2023 14:07:37 +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 4RxFfx0zBHz3SM4; Thu, 28 Sep 2023 14:07:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695910057; 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=4T9kTbjgZTDTRC0q6gUr4g4BS2p+3s6pJBPrJPPGFi4=; b=Pv2kZ6Nx/pcaUEvID5rTYqTOXPl0gA7S7JNMAT1SzLed4wzc4CtAL5Tk8pq/+VopQAPNkU oQRdFkUsOuFkWU7oBF2LWNnOryXapA8cIMjQAiC+66EzsjjV54wVTmX7tCDcpfR5eiBxga 3cqRpHg7ibSziJeNm6iUXrcUeUf8s0O/3s6LzRSLpTUUgHvXY9sQg1+CurBjtVTgzVQydD GUGuenhA4rGueiquEZbJPWyyxsVQceE9SgIvuhMu/GuqYSjiI9iSbo+6r5ISwEV6XZ/BRc HxBOWj17U37yAQxle32W4EXmBbLJOVfU3AGTKTDl1XjDJIuUH4Gsk02hsbN/OA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695910057; a=rsa-sha256; cv=none; b=PJevXEPToQkyTHFhMoyggniIEW/59YXNcDrOjn+eipTD6nilRTnm3e509gCxisd3Pb2G8b MU5GcJvDF+sNwx1Wz77IcssVYd3m/WdfnWP0uSz6FyPcTmvKLTr2uIVjjWO+IcZ0sjygTJ JBBl3J2zfAWFtWc12MTF2SqHJ1McHr57KtzpGk13smJPLYWj1kDYslQdWNlGV6rJl3eWov QjujCOXDxWOQj4d2XZG/H4pCq0Uyh84/rY9pRM9PMF6UKj5Hs4n4fbGnyUSSe/pDiFdrmv PUNwaERrNKl84ofg2RYwRP8/iOM+b/4rDMzUM3yoPAHNLyRD6ZNDCzqL/IWSig== 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=1695910057; 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=4T9kTbjgZTDTRC0q6gUr4g4BS2p+3s6pJBPrJPPGFi4=; b=k4tLrBzes5MCmTkUdtKNUFjsqKuA2F+/KsVbvk1Frr9ZUGJOYO+guynV6jOCAHadAbf60+ MGV5SJTKH0Sq098N+UoTYNMlIPCIWdNOXX2IOuj5dzhEftEx2tOfBnMszTne1btrC61D4Q ZkQhqnSTmAqh5dmMi8v2wTjrKxIAMEXnOPx1sNe+0vwovGJ5WA6UOBH/+2bKCcncAJM/aa cRgUrgcVqFpFf6MOh2d7/vOFhACYmBN0TkxL+PmdJK5zYwGvbsh9vtSKhCULij5kuqRnOV czxGLLpROoXKhYzPrC2cutrYRpUkwDtCFC/ngDLMgqXEW3OlGPH+/EuEVdquCw== 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 4RxFfx029wz8yw; Thu, 28 Sep 2023 14:07:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38SE7a1r039195; Thu, 28 Sep 2023 14:07:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38SE7aBN039191; Thu, 28 Sep 2023 14:07:36 GMT (envelope-from git) Date: Thu, 28 Sep 2023 14:07:36 GMT Message-Id: <202309281407.38SE7aBN039191@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mariusz Zaborski Subject: git: 64c6327738fc - main - cat: add CAP_SEEK capability 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: oshogbo X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 64c6327738fc24bb34b9f40ff1c223ab460ef637 Auto-Submitted: auto-generated The branch main has been updated by oshogbo: URL: https://cgit.FreeBSD.org/src/commit/?id=64c6327738fc24bb34b9f40ff1c223ab460ef637 commit 64c6327738fc24bb34b9f40ff1c223ab460ef637 Author: Mariusz Zaborski AuthorDate: 2023-09-28 13:20:47 +0000 Commit: Mariusz Zaborski CommitDate: 2023-09-28 13:38:36 +0000 cat: add CAP_SEEK capability The copy_file_range might require that. Reviewed by: emaste, theraven, kib, markj Differential Revision: https://reviews.freebsd.org/D41967 --- bin/cat/cat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cat/cat.c b/bin/cat/cat.c index ec14451acd0c..ce7a83d59d5a 100644 --- a/bin/cat/cat.c +++ b/bin/cat/cat.c @@ -155,7 +155,7 @@ init_casper(int argc, char *argv[]) err(EXIT_FAILURE, "unable to create Casper"); fa = fileargs_cinit(casper, argc, argv, O_RDONLY, 0, - cap_rights_init(&rights, CAP_READ | CAP_FSTAT | CAP_FCNTL), + cap_rights_init(&rights, CAP_READ | CAP_FSTAT | CAP_FCNTL | CAP_SEEK), FA_OPEN | FA_REALPATH); if (fa == NULL) err(EXIT_FAILURE, "unable to create fileargs");