From nobody Sat Jan 11 02:49:01 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 4YVNJZ6m0nz5l4YK; Sat, 11 Jan 2025 02:49:02 +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 4YVNJZ0MS5z4Hn3; Sat, 11 Jan 2025 02:49:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736563742; 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=Fh558Lpe3eD4r54v+G4Z3Y/btjxLjaT8epNXF8Ajpe0=; b=Up/tZJ9Q2WOjlhjLQhQvlwzQJfrrX8J9IFflrOMOjm2/EM5MW/nebAGwiXdHQt30TVC4ju gsi5xbD7LbdvbOEPlaMd0nq5L/2m+MVA+Tg+J7Jmr19uT24L3p8aqM1s9rllYxkw6YLNe1 usCc5rq7eyRW28l+HPni8DtSbopjEClIWiZ39rPhUZ3hCLkYmbNAPi2h/rrdjIxVo4vVFc VkKJCHThRexhwBgbWmp+wgHBjqPCh3mqucWWykWyt2md22w+u9Y3sWGIr20PLCskzTnoFG 5vTNLveJSnVoco7nrhnFKkT6p45/Gb99i3er3QRk0Io73bdM95fJ+Bah4KFWpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736563742; 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=Fh558Lpe3eD4r54v+G4Z3Y/btjxLjaT8epNXF8Ajpe0=; b=vvqorYYt/7MXUVb0kCAvFx2KsOjT3a4cSXCmqY9WG3rZ4eqoysmZwShC7y4yE0dnVWfsui TzCiZ8qaHrGGL1/FvtA0jMvHp07NRJVrv/aGVM1plOhrXrVes7PKjQ+3EZ4hDNaWtOgPJB yofoORmj05S8gBtq24UTFKcguo26e0fCR0kjV16LXKtHIazPfAccLrrb79moJLsxKy/EY9 /NssrYhJXREBS0b8M8veUf9eZj92T3ZjurI4Th8+04x6NXz3Md/89bZezI7hgjti6/ol53 EcFKHD8ak9s96VxDbHyRLc0rDFwWJSitYd37n/4luF6Zd0u7zmvYW9acAQYuxQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736563742; a=rsa-sha256; cv=none; b=nhobR+DmB24a+foyQi93rkGJ5SONI390SFBW269rcWftVGHeG1ylMejWr35v8NIPMv7dez ArW1UDrWRYoSIsp3BilDmAK3CxIY8dI1ioGT8U5/yX6KX13X/EcVmZJjORuBfyQmFiG/tz iWMt9gQwQD0E4nTC944oZj04UmQ5pC7cTndQXSR7mZINc3fWu5gWORT3fq1UQ1jnKveqZI ZqHuuMFUmthFdvR5ppX3T5c1DFYQgx7e2OfzoLoNCKdD5FLPuMkATW8a3yy1dAqpcrV+sa k54+RPBmRKrVreSYYJDbklugMfSXiFfKpKh5cuQ2qEIexAxgh4D83+UARVkrHA== 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 4YVNJY6SVxzgYx; Sat, 11 Jan 2025 02:49:01 +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 50B2n1UV066524; Sat, 11 Jan 2025 02:49:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50B2n1A8066521; Sat, 11 Jan 2025 02:49:01 GMT (envelope-from git) Date: Sat, 11 Jan 2025 02:49:01 GMT Message-Id: <202501110249.50B2n1A8066521@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: 4ce976c56fcb - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: 4ce976c56fcb7a6687d956244f8ef7b37ca38025 Auto-Submitted: auto-generated The branch stable/14 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=4ce976c56fcb7a6687d956244f8ef7b37ca38025 commit 4ce976c56fcb7a6687d956244f8ef7b37ca38025 Author: Kyle Evans AuthorDate: 2025-01-02 02:15:36 +0000 Commit: Kyle Evans CommitDate: 2025-01-11 02:48:26 +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