Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 88f565d2e7a8ff9565c3f14e2693d47714602b7c
Ticket: 3463315fffffffffffffffffffffffffffffffff
file normalize breaks C:/Windows/system32/drivers/etc/hosts
User & Date: zoro2 on 2011-12-21 10:39:51
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The problem occurs on Windows 7 64bit and 32bit Tcl (such as ActiveTcl or custom build). I did not check 32bit Windows 7.
    
    On a Windows Vista 32bit this works fine, though.
    
    The problem is file normalize removes the etc part of the path and this makes the path invalid.
    
    % file exists C:/Windows/system32/drivers/etc/hosts
    1
    % file normalize C:/Windows/system32/drivers/etc/hosts
    C:/Windows/System32/drivers//hosts
    
    Changing the WOW64 does not change the behavior:
    
    % ::twapi::Wow64EnableWow64FsRedirection 0
    % file normalize C:/Windows/system32/drivers/etc/hosts
    C:/Windows/System32/drivers//hosts
    % ::twapi::Wow64EnableWow64FsRedirection 1
    % file normalize C:/Windows/system32/drivers/etc/hosts
    C:/Windows/System32/drivers//hosts
    
    Please let me know if I can provide any additional information or if I can help with anything related to this bug.
    
  4. foundin changed to: "obsolete: 8.6b2"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "zoro2"
  10. subsystem changed to: "37. File System"
  11. title changed to:
    file normalize breaks C:/Windows/system32/drivers/etc/hosts
    
  12. type changed to: "Bug"