#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);
Note:
See TracTickets
for help on using tickets.
Fixed in changeset [289].