Skip to content
Tcl Source Code History Of Ticket 219254ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 219254ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 219254ffffffffffffffffffffffffffffffffff

  1. Ticket change [9195e57ed8] (rid 120640) by nobody on 2000-10-26 05:04:13:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 5859 Bug
      Version: 8.4a1
      SubmitDate: '2000-06-08'
      LastModified: '2000-07-25'
      Severity: MED
      Status: Assigned
      Submitter: techsupp
      ChangedBy: ericm
      OS: Solaris
      OSVersion: SPARC Solaris 2.6
      FixedDate: '2000-10-25'
      ClosedDate: '2000-10-25'
      
      
      Name:
      Askar Rahimberdiev
      
      ReproducibleScript:
      When working from root account, [file executable file_name] command always returns 1 disregarding actual file permissions (for any existing file). However, subsequent exec command will fail if file has no execute permission.
      
      DesiredBehavior:
      Check file permissions using stat() (not access()) system call.
      
      
      
      Verified on Linux and Solaris.
      
      - eric
       
      -- 07/25/2000 ericm
      
    4. foundin initialized to: "obsolete: 8.4a1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to:
      [file executable file_name] always returns 1 when working fr
      
    11. type initialized to: "Bug"
  2. Ticket change [9b65f3d250] (rid 111113) by dkf on 2000-11-15 21:41:43:

    1. icomment:
      Why is Solaris claiming that files are executable (via access()) when working as root?  Isn't this a Solaris (or filesystem) bug?  Mind you, a file can be unexecutable (due to a bad Magic Number) even if it has the appropriate execute bits set in its file mode; [file execute] cannot ensure that an [exec] won't fail due to non-executability...
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. subsystem changed to: "37. File System"
    5. username: "dkf"
  3. Ticket change [e2e7eecd9b] (rid 87699) by hobbs on 2000-11-21 01:15:50:

    1. icomment:
      This has nothing to do in particular with Solaris.  This is a valid stupid feature according to the POSIX spec.  From the spec:
      
      "Some historical implementations of access() do not check the file's access correctly when the real user ID of the process is the superuser.  In particular, they indicate that the file may be executed without regard to whether the file is executable.  The standards allow this behavior."
      
      Thus, we shouldn't rely on access() for executability when the user is root.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  4. Ticket change [30aabff8e6] (rid 93296) by andreas_kupries on 2001-09-08 06:40:13:

    1. assignee changed to: "vincentdarley"
  5. Ticket change [44243bbda7] (rid 116671) by vincentdarley on 2001-09-11 00:27:09:

    1. assignee changed to: "hobbs"
    2. foundin changed to: "obsolete: 8.3.2"
    3. icomment:
      Logged In: YES 
      user_id=32170
      
      This bug will also impact the behaviour of glob when asking 
      for executable files only.  This means any fix should 
      change the following too (in tclUnixFile.c):
      
      ((types->perm & TCL_GLOB_PERM_X) &&
         (access(entryPtr->d_name, X_OK) != 0))
      )) {
      typeOk = 0;
      
      since a 'stat' buffer has already been filled in and is 
      available to this block of code, the change should be 
      easy.  I leave this to Jeff on un*x to create and test a 
      patch.
      
      
      
    4. login: "vincentdarley"
    5. mimetype: "text/plain"
    6. username: "vincentdarley"
  6. Ticket change [fe718c16a0] (rid 108589) by hobbs on 2001-09-11 06:16:38:

    1. priority changed to: "2"
  7. Ticket change [7b03607d4c] (rid 90437) by patthoyts on 2007-01-09 04:53:55:

    1. foundin changed to: "obsolete: 8.5a5"
    2. icomment:
      Logged In: YES 
      user_id=202636
      Originator: NO
      
      Problem still exists on Solaris 10 with tcl 8.5a5
      
      
    3. login: "patthoyts"
    4. mimetype: "text/plain"
    5. username: "patthoyts"