Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e0f1b5ef8c0166a74b341e5d6d3e9e3afce576eb
Ticket: 910525ffffffffffffffffffffffffffffffffff
[glob -path /priv *] doesn't find /private
User & Date: vincentdarley on 2004-03-08 01:52:37
Changes

  1. icomment:
    Logged In: YES 
    user_id=32170
    
    Please test this patch:
    
    diff -u -r1.47 tclFileName.c
    --- tclFileName.c       5 Feb 2004 20:25:32 -0000       1.47
    +++ tclFileName.c       7 Mar 2004 18:42:44 -0000
    @@ -1745,6 +1745,13 @@
                    /* Have to split off the end */
                    Tcl_DStringAppend(&pref, last,
    first+pathlength-last);
                    pathOrDir = Tcl_NewStringObj(first,
    last-first-1);
    +               /*
    +                * We must ensure there's at least one path
    separator
    +                * in the prefix, even if it's just "/" or
    "C:/".
    +                */
    +               if (strpbrk(Tcl_GetString(pathOrDir), "\\/")
    == NULL) {
    +                   Tcl_AppendToObj(pathOrDir, last-1, 1);
    +               }
                }
                /* Need to quote 'prefix' */
                Tcl_DStringInit(&prefix);
    
    Should work on Windows and Unix, I think (but only tested on
    the former).
    
    
    
  2. login: "vincentdarley"
  3. mimetype: "text/plain"
  4. username: "vincentdarley"