summaryrefslogtreecommitdiff
path: root/sysutils/skill/patches
diff options
context:
space:
mode:
authorkent <kent>2002-06-23 14:42:00 +0000
committerkent <kent>2002-06-23 14:42:00 +0000
commit65274584f13e32d7f4eb6539bdf71c8c8199f464 (patch)
tree50edb1779b336f3562dbeed0979c300649013700 /sysutils/skill/patches
parent378a05d994ac3059e4c0564333162e4e5271b219 (diff)
downloadpkgsrc-65274584f13e32d7f4eb6539bdf71c8c8199f464.tar.gz
Fix for truncated process name problem decribed in pkg/10416.
Increment PKGREVISION.
Diffstat (limited to 'sysutils/skill/patches')
-rw-r--r--sysutils/skill/patches/patch-ab23
1 files changed, 23 insertions, 0 deletions
diff --git a/sysutils/skill/patches/patch-ab b/sysutils/skill/patches/patch-ab
new file mode 100644
index 00000000000..c136829b584
--- /dev/null
+++ b/sysutils/skill/patches/patch-ab
@@ -0,0 +1,23 @@
+$NetBSD: patch-ab,v 1.9 2002/06/23 14:42:01 kent Exp $
+
+--- main.c~ Sat Apr 6 13:26:01 2002
++++ main.c
+@@ -46,6 +46,9 @@
+ #include <stdio.h>
+ #include <errno.h>
+ #include <pwd.h>
++#ifdef __NetBSD__
++# include <sys/sysctl.h>
++#endif
+
+ /*
+ * Processes which could not be checked -- usually due to permission
+@@ -137,7 +140,7 @@
+ for (i = 0; i < CmdIndx; i++) {
+ cmdp = (CmdList + i);
+ if ((cmdp->flags & CMD_FLAG_EXACT) != 0 &&
+- STREQU(CMD, cmdp->cmd.cmdstr))
++ STRNEQU(CMD, cmdp->cmd.cmdstr, KI_MAXCOMLEN-8))
+ break;
+ else if ((cmdp->flags & CMD_FLAG_REGEX) != 0 &&
+ RegexMatch(CMD, cmdp) != 0)