From nobody Sat Jan 11 02:49:07 2025 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 4YVNJg2mnhz5l4bn; Sat, 11 Jan 2025 02:49:07 +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 4YVNJg1Jdlz4J0f; Sat, 11 Jan 2025 02:49:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736563747; 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=RnC+R5SWkm19ZcvKz9PlMs5TlLGFu9HbJbG6pH+jjDo=; b=VsqqzYokPv4gl6qDwijHqwdK40MC0u08LDr9UARokQZJixuW3EbYzS8htEBOqi5i9zLsWV cPe6jb8anz9icCI6SoD+R6jgipQfuzPlaESDDa+NhFjoXZZMp3MSK5niO8bvFt7v2YkjYM 2fU9Efb6+oaZrEof00lks/zlGZWVq1AuPZ7lXYt26SHLFrPs2V9O8NQUsh2zlXSkdKhAGX ZUyi25jJ7e9FHtnbdwzMv+du6vZ6/utDP76HggKzY+7M68YiSE1xCn4HGNGWUbeM+VQ4Qf hE/2DZVRmgfl7UvBQceCY1VOH37XVNTUQF9F2zUeBgtbdBXpQ7acvPVuNqJRuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736563747; 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=RnC+R5SWkm19ZcvKz9PlMs5TlLGFu9HbJbG6pH+jjDo=; b=hOkfGd8SklihY91eJJk/t/KGU9em2gCadWpoye6uhEy1fDoIL6ElvjiRJnEt6WHxNHxFMb 4lLkYfr0Er0pXY5mvTtQihEvbvRbqcvXWy2+bA/13Xh+IzzLJyHbH1xJa3m3YbyZXsm1PO xRu5mlB26ZjEFrsWp0sgLH9o/TepfdusLlyPGMwNfqRmrYFdjAST/7faelklivld0s0RdS hiMI0FSn0F09Xnb4dih10MOkB1aR1PYc/eWTuE5hhELGzTbUaOjbZ0fuC+3uSBxvDSSOB+ UsGFJbG0F0KJl+zVzLRMzbg3UQAg7WAsbbNnz99p1shiKtzXT3X8Rz4Xy/4l2w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736563747; a=rsa-sha256; cv=none; b=l7Uavq0pvK8QRhylPUvdDyE5VEOWMwn2YQByuQSC89xPVJQwsavAiwlF8Ik+Bj47ydMvVy R5KgNXNIYPi7lsYY1t3KLMTUm70hXYbCQiEnXMV8R/0ni/kE0Db6ps4GOIm2AA+1PQ52cA 2UiLC/O7r8Uo9oywwGEO3q7QcfA6GOJ3bt6IYaEpYngiCUsYJ9f9Uwh9PBuuwqPBWobxZI cUkUFudOVqgxpI3wq6NfFu7XNP6bHV6ct1zUAoXuF2t10zMQdKB5tD0OxvSmsGHx/2ifC5 5dO+TlWnVxvHghsTZ9LR8mE4NYNhU5tnUOyZ9xAz+F5RxvTUtGvqzGe/Cw4Dag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YVNJg0qJXzfy5; Sat, 11 Jan 2025 02:49:07 +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 50B2n7HP066848; Sat, 11 Jan 2025 02:49:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50B2n7Ob066845; Sat, 11 Jan 2025 02:49:07 GMT (envelope-from git) Date: Sat, 11 Jan 2025 02:49:07 GMT Message-Id: <202501110249.50B2n7Ob066845@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: 0d946859c994 - stable/13 - shar: add a deprecation notice 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: kevans X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 0d946859c99408ab42c9f3934ee9c9f149e3e36b Auto-Submitted: auto-generated The branch stable/13 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=0d946859c99408ab42c9f3934ee9c9f149e3e36b commit 0d946859c99408ab42c9f3934ee9c9f149e3e36b Author: Kyle Evans AuthorDate: 2025-01-02 02:15:36 +0000 Commit: Kyle Evans CommitDate: 2025-01-11 02:48:31 +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) (cherry picked from commit f68ee0e7a1e8732f725cad4ac708ec49093782d4) (cherry picked from commit 2832af7b4ea256b18ef4dbf2ff97a50765f0609a) --- usr.bin/shar/shar.1 | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/usr.bin/shar/shar.1 b/usr.bin/shar/shar.1 index 3a49c9ee06e3..9b74745970c9 100644 --- a/usr.bin/shar/shar.1 +++ b/usr.bin/shar/shar.1 @@ -27,12 +27,29 @@ .\" .\" @(#)shar.1 8.1 (Berkeley) 6/6/93 .\" -.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. +The +.Pa sysutils/freebsd-shar +port has been created to maintain this version of +.Nm +past its deprecation in base. .Sh SYNOPSIS .Nm .Ar