From nobody Thu Jan 02 02:15:40 2025 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 4YNr0D52LTz5jppG; Thu, 02 Jan 2025 02:15:40 +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 4YNr0D4Dl6z4Bdf; Thu, 2 Jan 2025 02:15:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735784140; 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=vkZXXJb2WtKzHdZWUmBsIcjmQfeX/MTtIljFmt/QKY0=; b=tz8FbDulXZFgZIZug/OL7JGg85YJMRmsHeVzZU3WT/kRHAjoQCf6yIkuumQyABOZNS7BKI otsbxoKXd+nyJE8LDfOBjR6yxY86jTyEmi8kcqyeqOXUW9+hZhIdeTM/XDsCHFOKWt54qz 6YcTQKVLnjGkBGkxvW2rl4XtI2tlLfIqv5Cy3UJqHQMF+iTop5Qw3nANEpxDnqmoFYhXGe Kv+qkPca8cwrEXsj9pYo6OIsFjKFM4XQc2TEB5l52d/gh/eewjKfsZxuJFe06B78ju6RLH VOhdkccfgS+dVBytlvKazmv/IJRQEl92ZcujmmR4ZnXQXIIxuFTvOEEzYjqNUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735784140; 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=vkZXXJb2WtKzHdZWUmBsIcjmQfeX/MTtIljFmt/QKY0=; b=MZegdOMPtCGneNetl0O4XSU7ZZFE3blBSHnWinMsVWzbnjH5kZJNnknFwg6Qt5mynWaJuA OfJnd3OqAh9qE5g9jstSCH8U5sguwH0ge9ignNdIEDg6PB05FhGDJME5Rs6j+TdCcIK0eE YHmrBHi4FVf/2eHLEr8A2gQjW0QGwR7CS7zWYLRZxrDn5ANyQVibSMARA7GOxEedeND5r1 4JB2erp0Zl0Za5LfUlMQKIZDIbrQcusJrQsQOop2XmycPa61MqGwsi6Uf7rdxoQuhe5nqQ I6NOCQ9S14ZOjMc7Ivq3hL9k2V6eRuEHYsEPwKKCxKKgvUsYQosMFLNhR+HWkQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735784140; a=rsa-sha256; cv=none; b=vVzgo5XIEomLZo8WmOcnHJ8H0wCxqrrKitbTypS35JJjtclX4rm3nteZ4/0y0jDZpHBmDY KLKl10CVsKtVZOWqkJpGetad08SaZFZwMGXr6qwoQM6WUjM/35ekdbFPlOhrc7k5KQ67lR Pr6eLZ/2HjKT0a8MYW68NQkCQmrjiHKkNh/IqZ6tVjVV4GE192xKyBmFQIF0f73BY6myNs MDylC7SyZkX7z8PXnPsGFfjIO5J7E+WaEgEw9yobnlyROwaT2WQkWrx+ogAJZSevQMr3C9 hh5fwpyn1UtO0sP8C5pnxBOHVCRubiMkavl/m6VsuOkZ9qOo82FJ4Q3Da5GS8A== 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 4YNr0D3qyczqBX; Thu, 2 Jan 2025 02:15:40 +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 5022Feci042719; Thu, 2 Jan 2025 02:15:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5022FeQP042716; Thu, 2 Jan 2025 02:15:40 GMT (envelope-from git) Date: Thu, 2 Jan 2025 02:15:40 GMT Message-Id: <202501020215.5022FeQP042716@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: f68ee0e7a1e8 - main - shar: add a deprecation notice 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f68ee0e7a1e8732f725cad4ac708ec49093782d4 Auto-Submitted: auto-generated The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=f68ee0e7a1e8732f725cad4ac708ec49093782d4 commit f68ee0e7a1e8732f725cad4ac708ec49093782d4 Author: Kyle Evans AuthorDate: 2025-01-02 02:15:36 +0000 Commit: Kyle Evans CommitDate: 2025-01-02 02:15:36 +0000 shar: add a deprecation notice The shar(1) program is simple, but the fundamental idea of a sh archive is risky at best and one that we probably shouldn't be promoting as prominently as a program in $PATH and a manpage. Let's deprecate and remove it, since the same functionality can easily be found in tar(1) instead. Reviewed by: emaste, philip Reviewed by: allanjude, brooks, delphij, des, imp, rpokala (previous) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D48130 --- usr.bin/shar/shar.1 | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/usr.bin/shar/shar.1 b/usr.bin/shar/shar.1 index 903f937491dc..df97021b1bba 100644 --- a/usr.bin/shar/shar.1 +++ b/usr.bin/shar/shar.1 @@ -25,12 +25,24 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd January 31, 2019 +.Dd January 1, 2025 .Dt SHAR 1 .Os .Sh NAME .Nm shar .Nd create a shell archive of files +.Sh DEPRECATION NOTICE +.Nm +is obsolete and may not be present in +.Fx 15 +and later. +Because shell archives are simultaneously data and code and are typically +interpreted by +.Xr sh 1 , +they can easily be trojan-horsed and pose a significant security risk to users. +The +.Xr tar 1 +utility can still produce shar encodings of files if needed. .Sh SYNOPSIS .Nm .Ar