Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 276f301640fc94ce47a918f46bd33f055a372193
Ticket: 533361ffffffffffffffffffffffffffffffffff
file delete does not on W2000/NT
User & Date: nobody on 2002-03-21 23:22:51
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The following code will not work correctly in Tcl
    8.3.2, if executed on W2000/NT on a Samba network
    share, even if the user posseses the necessary permissions:
    
    > cd //SambaServer/jdoe
    > glob test_dir
    test_dir
    > glob test_dir/file
    test_dir/file
    > file delete -force test_dir
    error delting "test_dir": permission denied
    
    I could trace down this problem to the
    DoRemoveDirectory function in win/tclWinFCmd.c.
    Apparently the first attempt to delete the directory
    yields an EACCESS error whereas a ENOTEMPTY is expected.
    
    Since the code already handles this behaviour for Win9x
    in this function, this simple work arround fixes the issue:
    
    Index: tclWinFCmd.c
    ===================================================================
    RCS file: /export/home/cvs/scriptics/tcl/win/tclWinFCmd.c,v
    retrieving revision 1.1.1.1
    diff -r1.1.1.1 tclWinFCmd.c
    840,841c840
    <
    <           if (TclWinGetPlatformId() !=
    VER_PLATFORM_WIN32_NT) {
    ---
    >           if (1 /*TclWinGetPlatformId() !=
    VER_PLATFORM_WIN32_NT*/) {
    
    
  4. foundin changed to: "None"
  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: "37. File System"
  10. title changed to: "file delete does not on W2000/NT"
  11. type changed to: "Bug"