Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jan 2002 12:20:02 -0800 (PST)
From:      Marc Olzheim <marcolz@stack.nl>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/33738: [PATCH] empty argv
Message-ID:  <200201102020.g0AKK2018859@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/33738; it has been noted by GNATS.

From: Marc Olzheim <marcolz@stack.nl>
To: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc: Marc Olzheim <marcolz@stack.nl>,
	freebsd-gnats-submit@FreeBSD.ORG, Serge van den Boom <svdb@stack.nl>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201102020.g0AKK2018859>