Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a9cba6f93136a9f4788fcef1bbe944152dd781280a31bddd2dd3459cc9e0e878
Ticket: cc1fabcb10f74c404f7992845c64f796e43fd27b
windows: file join, file normalize (and/or Tcl_FSGetTranslatedPath) behave incorrect by translation to parent dir for root of samba path
User & Date: juliannoble2 on 2024-11-08 12:58:55
Changes

  1. icomment:
    >I believe the current behaviour is the correct before. ".." is a synonym for "the parent directory", and the parent directory of the root directory is the root directory.
    
    Yes... or in Microsofts terminology - the server and share make up the 'volume' which can't be navigated beyond.
    ie the following is correct
      % file dirname //server/share
      //server share
    
    //server/share/etc is an ordinary UNC path with volume //server/share/
    //?/UNC/server/share/etc is a device UNC path with volume //?/UNC/server/share/ 
    
    //?/c:/ is a dos device path with volume //?/c:/
    
    (where technically forwardslashes are backslashes)
    
    As an added microsoft twist - the windows API documentation suggests that you can't navigate beyond the volume - but it seems that cmd.exe and powershell may process ".." segments before passing to the API - so some commandline tests can be misleading.  Presumably it's the API behaviour we want to be consistent with.
    
  2. login: "juliannoble2"
  3. mimetype: "text/plain"