From 7282a1dc11fbf03d4df8e0bd5c865969cc6447e9 Mon Sep 17 00:00:00 2001 From: millert Date: Wed, 11 Mar 2026 14:54:55 +0000 Subject: [PATCH] Increase argv buffer from _POSIX2_LINE_MAX to _POSIX_ARG_MAX. This better handles matching commands with long arguments. Note that it is still possible for a command to have command line arguments larger than _POSIX_ARG_MAX, but this should be enough in most cases. From Mikolaj Kucharski --- usr.bin/pkill/pkill.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/pkill/pkill.c b/usr.bin/pkill/pkill.c index c9ed8cc9e3b..b323307dbf0 100644 --- a/usr.bin/pkill/pkill.c +++ b/usr.bin/pkill/pkill.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pkill.c,v 1.43 2021/09/01 15:54:40 deraadt Exp $ */ +/* $OpenBSD: pkill.c,v 1.44 2026/03/11 14:54:55 millert Exp $ */ /* $NetBSD: pkill.c,v 1.5 2002/10/27 11:49:34 kleink Exp $ */ /*- @@ -113,7 +113,7 @@ extern char *__progname; static char * getargv(struct kinfo_proc *kp) { - static char buf[_POSIX2_LINE_MAX]; + static char buf[_POSIX_ARG_MAX]; char **pargv; size_t j;