From owner-freebsd-bugs Thu Jan 10 12:20: 8 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4959D37B41B for ; Thu, 10 Jan 2002 12:20:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0AKK2018859; Thu, 10 Jan 2002 12:20:02 -0800 (PST) (envelope-from gnats) Date: Thu, 10 Jan 2002 12:20:02 -0800 (PST) Message-Id: <200201102020.g0AKK2018859@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Marc Olzheim Subject: Re: kern/33738: [PATCH] empty argv Reply-To: Marc Olzheim Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR kern/33738; it has been noted by GNATS. From: Marc Olzheim To: Garrett Wollman Cc: Marc Olzheim , freebsd-gnats-submit@FreeBSD.ORG, Serge van den Boom Subject: Re: kern/33738: [PATCH] empty argv Date: Thu, 10 Jan 2002 21:19:18 +0100 > > execve(argv[1], NULL, bar); > > This, on the other hand, should probably return an error. A null > pointer is not an ``array of character pointers'' as required by the > Standard. The Standard does not require a particular error return for > this case, so any error is permissible; [EFAULT] is probably the best. Is this "the Standard" for execve(), or for argv ? Because alle the execve()-d prog sees _is_ an array of character pointers, because execve() reproduced the information onto the stack. Marc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message