From owner-cvs-all Sun Dec 3 17:46: 2 2000 From owner-cvs-all@FreeBSD.ORG Sun Dec 3 17:45:59 2000 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2BC9937B400; Sun, 3 Dec 2000 17:45:58 -0800 (PST) Received: (from jdp@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id eB41jw809701; Sun, 3 Dec 2000 17:45:58 -0800 (PST) (envelope-from jdp) Message-Id: <200012040145.eB41jw809701@freefall.freebsd.org> From: John Polstra Date: Sun, 3 Dec 2000 17:45:58 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/gen setproctitle.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jdp 2000/12/03 17:45:58 PST Modified files: lib/libc/gen setproctitle.c Log: When recording the original arguments, stop short if we encounter a NULL argument. Some programs change the contents of the argv array, typically to remove some special arguments. They shorten argv by storing a NULL where an argument pointer used to be. Such programs core dumped if they called setproctitle(), because it would try to apply strlen() to a NULL pointer. Revision Changes Path 1.14 +11 -1 src/lib/libc/gen/setproctitle.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message