git: 99d534c2df10 - main - sysutils/am-utils: Fix amq -i timestamp segmentation violation
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 07 Nov 2024 18:14:10 UTC
The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/ports/commit/?id=99d534c2df106d454f786e7a21c166f07f5ce3a4 commit 99d534c2df106d454f786e7a21c166f07f5ce3a4 Author: Cy Schubert <cy@FreeBSD.org> AuthorDate: 2024-11-07 17:23:03 +0000 Commit: Cy Schubert <cy@FreeBSD.org> CommitDate: 2024-11-07 18:12:57 +0000 sysutils/am-utils: Fix amq -i timestamp segmentation violation Bring in src/9ee9d3867243. MFH: 2024Q4 --- sysutils/am-utils/Makefile | 2 +- sysutils/am-utils/files/patch-amq_amq.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/sysutils/am-utils/Makefile b/sysutils/am-utils/Makefile index 2a14f46559de..a05f153e473f 100644 --- a/sysutils/am-utils/Makefile +++ b/sysutils/am-utils/Makefile @@ -1,6 +1,6 @@ PORTNAME= am-utils PORTVERSION= 6.2 -PORTREVISION= 12 +PORTREVISION= 13 PORTEPOCH= 1 CATEGORIES= sysutils net MASTER_SITES= https://download.filesystems.org/am-utils/ \ diff --git a/sysutils/am-utils/files/patch-amq_amq.c b/sysutils/am-utils/files/patch-amq_amq.c new file mode 100644 index 000000000000..3e13cd1e645e --- /dev/null +++ b/sysutils/am-utils/files/patch-amq_amq.c @@ -0,0 +1,12 @@ +diff --git amq/amq.c.orig amq/amq.c +--- amq/amq.c.orig ++++ amq/amq.c +@@ -79,7 +79,7 @@ enum show_opt { + static void + time_print(time_type tt) + { +- time_t t = (time_t)tt; ++ time_t t = (time_t)(intptr_t)tt; + struct tm *tp = localtime(&t); + printf("%02d/%02d/%04d %02d:%02d:%02d", + tp->tm_mon + 1, tp->tm_mday,