*Synopsis*: ksh93 profile shell option does not work

Due to a change requested by <User 1-1SURPB>,
<User 1-1SURPB> is now the responsible engineer for:

CR 6605478 changed on Jun 17 2009 by <User 1-1SURPB>

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

Evaluation             New Note                                               
Hook 5                 <email address omitted>                                
Hook 6                 <email address omitted>                                
Introduced in Build    snv_72                                                 
Introduced in Release  solaris_nevada                                         
Keyword                oss-request                                            
Keyword                oss-sponsor                                            
Responsible Engineer   <User 1-1SURPB>                                        
Root Cause             Other - see Research Acti..                            
See Also               6793763                                                
Status                 6-Fix Understood            4-Defer                    
Targeted Release       solaris_nevada                                         
====================== =========================== ===========================

     
*Change Request ID*: 6605478

*Synopsis*: ksh93 profile shell option does not work

  Product: solaris
  Category: shell
  Subcategory: korn93
  Type: Defect
  Subtype: 
  Status: 6-Fix Understood
  Substatus: 
  Priority: 3-Medium
  Introduced In Release: solaris_nevada
  Introduced In Build: snv_72
  Responsible Engineer: <User 1-1SURPB>
  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: 
        Fixed In Build: 
        Integrated In Build: 
        Verified In Build: 
  See Also: 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>


=== *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