Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ba75558713a8f120c62957bd6f4270696955895f
Ticket: 1157137fffffffffffffffffffffffffffffffff
Cannot open file if parent directory unreadable on Solaris
User & Date: nobody on 2005-03-05 05:47:53
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Tcl version: 8.4.6 & 8.4.9
    OS: Solaris 2.6 & 8 (possibly other Unixes, but *not* 
    Linux)
    
    To replicate the problem, do the following under a shell:
    
    mkdir -p /tmp/dir1/dir2
    chmod 111 /tmp/dir1
    cd /tmp/dir1/dir2
    echo JUNK > file
    tclsh
    % open file
    error getting working directory name: permission denied
    
    Yet this file is very readable! It's just that a parent 
    directory is not readable (dir1). For some reason Tcl 8.4 
    appears to want to do a getcwd() before opening the file, 
    which fails on Solaris (and possibly other Unices).
    
    This is causing us great grief, and I cannot even find a 
    workaround other than to change the directory 
    permissions, which we do not want to do for security 
    reasons.
    
    Is this problem known or patched somewhere? We need 
    a fix real soon!
    
    Thank you,
    Mike Selig
    
  4. foundin changed to: "obsolete: 8.4.9"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "37. File System"
  10. title changed to:
    Cannot open file if parent directory unreadable on Solaris
    
  11. type changed to: "Bug"