Overview
| Artifact ID: | 276f301640fc94ce47a918f46bd33f055a372193 |
|---|---|
| Ticket: | 533361ffffffffffffffffffffffffffffffffff
file delete does not on W2000/NT |
| User & Date: | nobody on 2002-03-21 23:22:51 |
Changes
- assignee changed to: "vincentdarley"
- cmimetype changed to: "text/plain"
- 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*/) { - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "37. File System"
- title changed to: "file delete does not on W2000/NT"
- type changed to: "Bug"