Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: adb5a76f6090c3bc896f5ffdf36ea0d98cf9884b
Ticket: 217864ffffffffffffffffffffffffffffffffff
Win32: [file mkdir] fails with absolute UNC path
User & Date: nobody on 2000-10-26 00:45:05
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2064 Bug
    Version: 8.0.5
    SubmitDate: '1999-05-13'
    LastModified: '1999-08-12'
    Severity: MED
    Status: Closed
    Submitter: pat
    ChangedBy: hobbs
    RelatedBugIDs: 672
    OS: Windows NT
    OSVersion: 4.0 Build 1381 Service Pack 4
    Machine: X86
    FixedDate: '2000-10-25'
    FixedInVersion: 8.1.1
    ClosedDate: '1999-08-12'
    
    
    Name:
    Kevin Kenny
    
    Extensions:
    None relevant
    
    CustomShell:
    Patch applied from BugID:1693; the patch
    
    Comments:
    The problem appears to be related to the 'stat' call in MSVCRTD.DLL
        (I've
        recompiled tcl80d.dll under VC++ 6.0 Service Pack #1).  When the
        TclFileMakeDirsCmd function walks the path name from top to bottom,
        it first tries to stat '\\host\share'.  The 'stat' call returns -1,
        with errno == ENOENT. As a result, the command tries to create a
        directory called '\\host\share', and gets an error return, this time
        with
        errno == EEXIST.  (If credentials have not yet been presented to
        \\host, the error is EACCES instead.)
        
        I'm not sure whether the correct solution would be to use an additional
        stat proc to catch this case, or whether a 'compat/' version of 'stat'
        is needed.  Either way, this appears to be an MSVCRT problem, but
        you know as well as I do the chances of getting *that* fixed.  :-(
    
    ReproducibleScript:
    # If \\host\share\dirName is a directory that exists on some host on
        the
        # network, then the command:
        
        file mkdir \\\\host\\share\\dirName\\subDirName
        
        # will fail with the message:
        #   can't create directory "//host/share": file already exists.
    
    ObservedBehavior:
    The directory is not created, and the error above is reported.
    
    DesiredBehavior:
    The directory should be created.
    
    
    
    This was fixed in 8.1.1. 
    -- 08/12/1999 hobbs
    
  4. foundin changed to: "final: 8.0.5"
  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: "69. Other"
  10. title changed to: "Win32: [file mkdir] fails with absolute UNC path"
  11. type changed to: "Bug"