aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/ksysguardd
diff options
context:
space:
mode:
authoravilla <avilla@FreeBSD.org>2011-04-23 08:35:57 +0800
committeravilla <avilla@FreeBSD.org>2011-04-23 08:35:57 +0800
commit8c69324cd4f29c6b7d94f712c0f75cccf7360450 (patch)
tree21e95bcccec6a21d959755acad31b9b459816123 /sysutils/ksysguardd
parentad5c0935e5036e4b02bc3ecbb9b2e5dc559e1f60 (diff)
downloadfreebsd-ports-gnome-8c69324cd4f29c6b7d94f712c0f75cccf7360450.tar.gz
freebsd-ports-gnome-8c69324cd4f29c6b7d94f712c0f75cccf7360450.tar.zst
freebsd-ports-gnome-8c69324cd4f29c6b7d94f712c0f75cccf7360450.zip
- Fix crash: an error in calculating MSI offsets resulted in the last
regular interrupt being included as a MSI interrupt and a buffer underrun, causing a segfault. - Remove setgid: ksysguardd no longer uses libkvm so does not need g+s or grp=kmem and can now run as a regular (unprivileged) user. - Bump PORTREVISION. Submitted by: David Bruce Naylor <naylor.b.david@gmail.com> via area51
Diffstat (limited to 'sysutils/ksysguardd')
-rw-r--r--sysutils/ksysguardd/Makefile5
-rw-r--r--sysutils/ksysguardd/files/patch-FreeBSD__stat.c20
2 files changed, 21 insertions, 4 deletions
diff --git a/sysutils/ksysguardd/Makefile b/sysutils/ksysguardd/Makefile
index 891134a3ce5b..4d50e1bb263f 100644
--- a/sysutils/ksysguardd/Makefile
+++ b/sysutils/ksysguardd/Makefile
@@ -7,6 +7,7 @@
PORTNAME= ksysguardd
PORTVERSION= ${KDE4_VERSION}
+PORTREVISION= 1
CATEGORIES= sysutils kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= ${KDE4_BRANCH}/${PORTVERSION}/src/
@@ -37,8 +38,4 @@ pre-build:
${REINPLACE_CMD} -e 's/<config-workspace.h>/"config-${PORTNAME}.h"/' \
${WRKSRC}/${PORTNAME}.c
-post-install:
- ${CHGRP} kmem ${PREFIX}/bin/${PORTNAME} && \
- ${CHMOD} g+s ${PREFIX}/bin/${PORTNAME}
-
.include <bsd.port.mk>
diff --git a/sysutils/ksysguardd/files/patch-FreeBSD__stat.c b/sysutils/ksysguardd/files/patch-FreeBSD__stat.c
new file mode 100644
index 000000000000..b79b81fbcad8
--- /dev/null
+++ b/sysutils/ksysguardd/files/patch-FreeBSD__stat.c
@@ -0,0 +1,20 @@
+--- ./FreeBSD/stat.c.orig 2011-04-01 12:52:43.000000000 +0200
++++ ./FreeBSD/stat.c 2011-04-23 02:14:24.221891829 +0200
+@@ -252,7 +252,7 @@
+ int irq;
+
+ sscanf(cmd + 18, "%d", &irq);
+- if (irq > 255 - msi_offset)
++ if (irq > 255)
+ irq -= msi_offset - 1;
+ fprintf(CurrentClient, "%ld\n", intr[intr_map[irq - 1]]);
+ }
+@@ -261,7 +261,7 @@
+ int irq;
+
+ sscanf(cmd + 18, "%d", &irq);
+- if (irq > 255 - msi_offset)
++ if (irq > 255)
+ irq -= msi_offset - 1;
+ fprintf(CurrentClient, "%s\t0\t0\t1/s\n", intrname[intr_map[irq - 1]]);
+ }