|
From: <sv...@va...> - 2009-03-17 04:04:46
|
Author: njn
Date: 2009-03-17 04:04:20 +0000 (Tue, 17 Mar 2009)
New Revision: 9444
Log:
Merge r8984 (execve.c comment) from the trunk.
Modified:
branches/DARWIN/none/tests/execve.c
Modified: branches/DARWIN/none/tests/execve.c
===================================================================
--- branches/DARWIN/none/tests/execve.c 2009-03-17 04:00:49 UTC (rev 9443)
+++ branches/DARWIN/none/tests/execve.c 2009-03-17 04:04:20 UTC (rev 9444)
@@ -6,6 +6,8 @@
{
if (argc == 1)
{
+ // This tests the case where argv and envp are NULL, which is easy to
+ // get wrong because it's an unusual case.
if (execve(argv[0], NULL, NULL) < 0)
{
perror("execve");
|