*Synopsis*: ksh93 profile shell option does not work

CR 6605478 changed on Nov 23 2009 by <User 1-2S67RN>

=== Field ============ === New Value ============= === Old Value =============

Integrated in Build    snv_128                                                
Status                 10-Fix Delivered            8-Fix Available            
====================== =========================== ===========================

     
*Change Request ID*: 6605478

*Synopsis*: ksh93 profile shell option does not work

  Product: solaris
  Category: shell
  Subcategory: korn93
  Type: Defect
  Subtype: 
  Status: 10-Fix Delivered
  Substatus: 
  Priority: 3-Medium
  Introduced In Release: solaris_nevada
  Introduced In Build: snv_72
  Responsible Engineer: <User 1-7MTUEB>
  Keywords: oss-request, oss-sponsor

=== *Description* ============================================================
When running ksh93 with the profile option or invoking it as
pfksh93, a few bad things happen:

- The first external command executed leads to the shell exiting:

        ksh93 -P
        $ /bin/echo x
        x
        <ksh93 has now execited>

- When pfexec is called it is called with argv[0] as the command to be 
executed; this
  is contrary to the standard  calling convention which would make argv[0]
  "/usr/bin/pfexec"

pfksh93 does this:
101043: execve("/usr/bin/pfexec", 0x00418310, 0x00418378)  argc = 3
101043:  argv: ifconfig /sbin/ifconfig -a

A Solaris profile shell does this:
101048: execve("/usr/bin/pfexec", 0x08096588, 0x08094E48)  argc = 3
101048:  argv: /usr/bin/pfexec /usr/sbin/ifconfig -a

*** (#1 of 1): 2007-09-17 13:27:20 GMT+00:00 <User 1-5Q-12274>


=== *Public Comments* ========================================================

=== *Workaround* =============================================================

=== *Additional Details* =====================================================
        Targeted Release: solaris_nevada
        Commit To Fix In Build: snv_128
        Fixed In Build: snv_128
        Integrated In Build: snv_128
        Verified In Build: 
  See Also: 6437624, 6793763
  Duplicate of: 
  Hooks:
        Hook1: 
        Hook2: 
        Hook3: 
        Hook4: 
        Hook5: <email address omitted>
        Hook6: <email address omitted>
  Program Management: 
  Root Cause: Other - see Research Activity
  Fix Affects Documentation: No
  Fix Affects Localization: No

=== *History* ================================================================
        Date Submitted: 2007-09-17 13:27:19 GMT+00:00
        Submitted By: <User 1-5Q-12274>

        Status Changed    Date Updated                  Updated By
        4-Defer           2008-10-14 17:00:50 GMT+00:00 <User 1-5Q-5151>
        6-Fix Understood  2009-06-17 12:08:42 GMT+00:00 <User 1-1SURPB>
        7-Fix in Progress 2009-10-23 17:21:17 GMT+00:00 <User 1-7MTUEB>
        8-Fix Available   2009-10-28 18:23:28 GMT+00:00 <User 1-5HNZ8F>
        10-Fix Delivered  2009-11-23 05:16:39 GMT+00:00 <User 1-2S67RN>


=== *Service Request* ========================================================
        Impact: Limited
        Functionality: Secondary
        Severity: 4
        Product Name: solaris
        Product Release: solaris_nevada
        Product Build: snv_72
        Operating System: solaris_nevada
        Hardware: generic
        Submitted Date: 2007-09-17 13:27:20 GMT+00:00


=== *Service Request* ========================================================
        Impact: Limited
        Functionality: Secondary
        Severity: 4
        Product Name: solaris
        Product Release: solaris_nevada
        Product Build: snv_75
        Operating System: solaris_nevada
        Hardware: generic
        Submitted Date: 2007-10-22 17:35:31 GMT+00:00


=== *Multiple Release (MR) Cluster* - 0 ======================================

Reply via email to