git: 2b1ab08852ae - main - editors/emacs: Add upstream patch to fix arbitary shell command execution vulnerability

From: Yasuhiro Kimura <yasu_at_FreeBSD.org>
Date: Fri, 13 Jan 2023 09:21:24 UTC
The branch main has been updated by yasu:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2b1ab08852aeaa17767219c50588b407b3c65747

commit 2b1ab08852aeaa17767219c50588b407b3c65747
Author:     Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2023-01-13 01:17:39 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2023-01-13 09:20:56 +0000

    editors/emacs: Add upstream patch to fix arbitary shell command execution vulnerability
    
    Reviewed by:    jrm
    MFH:            2023Q1
    Security:       76e2fcce-92d2-11ed-a635-080027f5fec9
    Differential Revision:  https://reviews.freebsd.org/D38033
---
 editors/emacs/Makefile | 5 ++++-
 editors/emacs/distinfo | 4 +++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/editors/emacs/Makefile b/editors/emacs/Makefile
index 816a4427d472..6b966cd35949 100644
--- a/editors/emacs/Makefile
+++ b/editors/emacs/Makefile
@@ -1,10 +1,13 @@
 PORTNAME=	emacs
 DISTVERSION=	28.2
-PORTREVISION=	1
+PORTREVISION=	2
 PORTEPOCH=	3
 CATEGORIES=	editors
 MASTER_SITES=	GNU
 
+PATCH_SITES=	https://github.com/emacs-mirror/emacs/commit/:github
+PATCHFILES=	d48bb4874bc6cd3e69c7a15fc3c91cc141025c51.patch:-p1:github
+
 .if ${FLAVOR:U} == canna
 PATCH_SITES+=	https://www.gentei.org/~yuuji/software/emacs28canna/:canna
 PATCHFILES+=	emacs28.1-canna-20220406b.diff.gz:-p1:canna
diff --git a/editors/emacs/distinfo b/editors/emacs/distinfo
index aacd3598deac..2b3cd4cb3976 100644
--- a/editors/emacs/distinfo
+++ b/editors/emacs/distinfo
@@ -1,5 +1,7 @@
-TIMESTAMP = 1663333582
+TIMESTAMP = 1673572523
 SHA256 (emacs-28.2.tar.xz) = ee21182233ef3232dc97b486af2d86e14042dbb65bbc535df562c3a858232488
 SIZE (emacs-28.2.tar.xz) = 47722600
+SHA256 (d48bb4874bc6cd3e69c7a15fc3c91cc141025c51.patch) = 6331f8676afa68a0f96b1461c1d75bbfb4f2d99177935f362ced0fef8b72e52d
+SIZE (d48bb4874bc6cd3e69c7a15fc3c91cc141025c51.patch) = 552711
 SHA256 (emacs28.1-canna-20220406b.diff.gz) = a57b7ca032229ce4d1eb2b2e59458db40e9ffc371a15e833699f3ce7caf05684
 SIZE (emacs28.1-canna-20220406b.diff.gz) = 30564