Opened 14 years ago

Closed 14 years ago

Last modified 9 years ago

#212 closed defect (fixed)

Compiler warning for argv == NULL in execve() on newer Linux

Reported by: rainer Owned by: rainer
Priority: minor Milestone: 2.7.2
Component: main Version:
Keywords: Cc:

Description

As reported by T. Luettgert, gcc 4.4.4 on Fedora 13 will throw a warning if execve is called with a NULL argv pointer. This makes many tests in the test suite fail. The patch:

@@ -419,7 +420,7 @@
 		  fcntl  (pfd, F_SETFD, FD_CLOEXEC);
 		  do {
 		    val_return = execve (pname, 
-					 (task->argc == 0) ? NULL : task->argv, 
+					 (task->argc == 0) ? argp : task->argv, 
 					 (task->envc == 0) ? NULL : task->envv
 					 );
 		  } while (val_return < 0 && errno == EINTR);

Change History (1)

comment:1 by rainer, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in changeset [289].

Note: See TracTickets for help on using tickets.