Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d61179ed9b02150357da889c08a7601e0d3d8031
Ticket: 391bc0fd2cdd59209201660b95a2d886d24c1825
glob, -nocomplain, -types, and insufficient privileges
User & Date: aspect on 2017-04-30 06:25:26
Changes

  1. icomment:
    Pushed a fix for {-types hidden} relying on stat() to branch of core-8-5-branch: [e83297c2af].  That includes the error mentioned in the previous comment.
    
    Now I'm not convinced about the second (larger) part of the patch.  The code that needs adjusting is populated with this comment:
    
    [https://core.tcl.tk/tcl/artifact/92268746c547b361?ln=437-449]
    
    .. IMHO passing EACCES back to the caller isn't clearly more useful:  a mode 0444 directory may have contents, but we can't do anything with them.  It also means [glob] will return EACCES under other conditions (eg, concurrent changes to the parent hierarchy) and raises questions of whether it should handle other error codes, which is a minefield when trying to retain portability.  It's a visible change to public routines without clear benefit.
    
    The committed change doesn't raise any new exceptions, so I think it should be fine for the next minor releases.
    
  2. login: "aspect"
  3. mimetype: "text/x-fossil-wiki"