directory, then we must call execlp and not execl
*/
shellname = shell;
- execlp (shell, shellname, "-c", args, 0);
+ execlp (shell, shellname, "-c", args, NULL);
}
else
{
shellname++;
- execl (shell, shellname, "-c", args, 0);
+ execl (shell, shellname, "-c", args, NULL);
}
}
* Try /bin/sh .
*/
#ifdef SVR4
- execl ("/usr/bin/sh", "sh", "-c", args, 0);
+ execl ("/usr/bin/sh", "sh", "-c", args, NULL);
#else
- execl ("/bin/sh", "sh", "-c", args, 0);
+ execl ("/bin/sh", "sh", "-c", args, NULL);
#endif