Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-9227

Should we use execvp instead of execv

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Not specified
    • Resolution: Fixed
    • Affects Version/s: 3.10.6
    • Fix Version/s: 3.10.8
    • Component/s: ECL Standard Library
    • Labels:
      None

      Description

      The exec routine in jutil.cpp calls execv instead of execvp. This necessitates the full path of the program be specified in functions like Std.System.Utils.CmdProcess. Otherwise, the exec call fails with EACCES. On another note, is the env_in argument to callExternalProgram ever true?

      Pipe is immune to this because it does not use the callExternalProgram routine.

      At the very least, it needs to be documented that an absolute path must be provided.

        Attachments

          Activity

            People

            • Assignee:
              richardkchapman Richard Chapman
              Reporter:
              starsid Siddhartha Bagaria (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: