Activity for Takeshi Ideriha

  • Takeshi Ideriha Takeshi Ideriha posted a comment on discussion General Discussion

    Hi While reading the source code, I found that the argument of execl() and execlp() is not specified properly. According to "man execl", the last argument execl() or execlp() should be "(char )NULL". However, "NULL" is specified instead of "(char )NULL" in the source code: - agent/lib/port.c: execl("/bin/sh", "sh", "-c", cmd, NULL) - agent/bin/maintenance.c: execlp("/bin/sh", "sh", "-c", command, NULL) https://man7.org/linux/man-pages/man3/exec.3.html Specifying "NULL" seems harmless on many environments,...

1