IBM Support

PQ35120: EXECLP() EXECUTES IN WORKING DIRECTORY RATHER THAN PATH

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as fixed if next.

Error description

  • When current working directory (.) is not specified in PATH
    statement, execlp() executes the shell script in the current
    working directory anyway rather than a directory in the PATH as
    intended.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of execlp().                           *
    ****************************************************************
    * PROBLEM DESCRIPTION: The function execlp() executes the      *
    *                      shell script in the current working     *
    *                      directory, if found, regardless of what *
    *                      is specified by PATH environment        *
    *                      variable.  It works "as if" the current *
    *                      working directory is specified first    *
    *                      in the PATH environment variable.       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The function execlp() needs to be modified so that it executes
    the shell script located in a directory specified by the PATH
    environment variable rather than always trying the current
    working directory first.
    

Problem conclusion

Temporary fix

Comments

  • This APAR is being closed FIN with concurrence from the
    submitting customer. This means that a fix to this APAR is
    expected be delivered from IBM in a release(if any) to be
    available within the next 18 months.
    

APAR Information

  • APAR number

    PQ35120

  • Reported component name

    LE C LIBRARY

  • Reported component ID

    568819805

  • Reported release

    910

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2000-01-27

  • Closed date

    2000-02-29

  • Last modified date

    2000-02-29

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

Applicable component levels

  • R607 PSN

       UP

  • R608 PSN

       UP

  • R609 PSN

       UP

  • R710 PSN

       UP

  • R810 PSN

       UP

  • R910 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCVSBD","label":"Runtime"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"910","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"910","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":null,"label":null},"Product":{"code":"SG19O","label":"APARs - MVS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"910","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
29 February 2000