Artifacts Associated With Ticket 1344540
Ticket change [3084b5cdb0] (rid 93270) by jfg118 on 2005-11-01 05:21:57:
- assignee initialized to: "vincentdarley"
- cmimetype initialized to: "text/plain"
- comment initialized to:
[Duplicate BUG 1193497 -- to allow file attachment] file writable lies for certain XP directories Windows XP SP2 french, Tcl/Tk cvs HEAD file writable "C:/Documents and Settings/<account>/Mes Documents/mydir" returns 1 if mydir does exist, or 0 if not. This is correct. file writable "C:/Documents and Settings/" returns also 1, which is correct. But: file writable "C:/Documents and Settings/<account>/Mes Documents" returns 0 but it should be 1 <account> is my account name (with administrator rights), this directory of course exists and I'm allowed to write files in it. === Attached files implement a solution based on the original bug. The source is based on the Tcl 8.4.11 source and encompasses the changes by dkf. The patch should still be easily applied on the CVS HEAD.
- foundin initialized to: "obsolete: 8.4.11"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "jfg118"
- subsystem initialized to: "37. File System"
- title initialized to: "file writable lies for certain XP directories"
- type initialized to: "Patch"
Ticket change [6a9dc92b0e] (rid 128185) by jfg118 on 2005-11-01 12:21:58:
- icomment:
File Added - 154636: win-tclWinFile.c.diff-u
- login: "jfg118"
- mimetype: "text/plain"
- username: "jfg118"
- icomment:
Ticket change [19589ea2eb] (rid 122794) by jfg118 on 2005-11-01 12:23:07:
- icomment:
File Added - 154637: win-tclWin32Dll.c.diff-u
- login: "jfg118"
- mimetype: "text/plain"
- username: "jfg118"
- icomment:
Ticket change [c8217593b3] (rid 122059) by jfg118 on 2005-11-01 12:24:22:
- icomment:
File Added - 154638: win-tclWinInt.h.diff-u
- login: "jfg118"
- mimetype: "text/plain"
- username: "jfg118"
- icomment:
Ticket change [d37673bd5b] (rid 123295) by dkf on 2005-11-01 18:34:22:
- foundin changed to: "None"
- icomment:
data_type - 310894
- login: "dkf"
- mimetype: "text/plain"
- subsystem changed to: "37. File System"
- username: "dkf"
Ticket change [bb1a5c011e] (rid 129422) by fvogelnew1 on 2005-12-02 03:17:46:
- icomment:
Logged In: YES user_id=1245417 Hi, Could you please apply your patch at least to the 8.4.11 branch so that it will be included in the upcoming 8.4.12? I really need this feature. Thanks a lot, Francois
- login: "fvogelnew1"
- mimetype: "text/plain"
- username: "fvogelnew1"
- icomment:
Ticket change [084b7ff720] (rid 89538) by fvogelnew1 on 2006-03-06 02:56:02:
- icomment:
Logged In: YES user_id=1245417 Hi all, It's now ten months since I opened the original bug (1193497), and 4 months since a patch has been kindly derived, and I really thank you for that. Everything seems to be ready for inclusion in the next Tcl release, but nothing happens. Why? What can I do to speed up the process? Can I be of any help, or should I just wait for some TCT member to review the patch and apply it to the codebase? I'm more than willing to help, but can't find any advice on how to do it. My knowledge of Tcl internals or ACL list is rather limited, but I'm ready to try whatever task is required. Thanks, Francois
- login: "fvogelnew1"
- mimetype: "text/plain"
- username: "fvogelnew1"
- icomment:
Ticket change [1fed3c0f06] (rid 91228) by patthoyts on 2006-03-08 04:59:49:
- icomment:
Logged In: YES user_id=202636 As it stands this patch cannot be applied as it requires Win32 API features that are only available on NT systems.
- login: "patthoyts"
- mimetype: "text/plain"
- username: "patthoyts"
- icomment:
Ticket change [fc5972fb8d] (rid 108224) by jfg118 on 2006-03-08 05:25:00:
- icomment:
Logged In: YES user_id=1266631 How does Tcl handle other similar situations? It seems that it would be straight forward to use the old method when running on non NT systems. From what I can see from MSDN the functions are available on all Windows NT versions newer than 3.51. This would mean it would only be a problem on Win95/98/Me. One could probably dynamically load the DLL entry points, and if it fails fall back to the old implementation.
- login: "jfg118"
- mimetype: "text/plain"
- username: "jfg118"
- icomment:
Ticket change [9641df49e0] (rid 106294) by jfg118 on 2006-03-09 07:22:51:
- icomment:
Logged In: YES user_id=1266631 Attached is a new patch which dynamically loads the NT specific Windows API functions. If the Windows API functions can not be found, the fallback is to use the read only flag as the function previously was implemented. The attached patch is now a single file which has been generated against the Tcl 8.4.12 source code. The change should be easily applied on CVS HEAD.
- login: "jfg118"
- mimetype: "text/plain"
- username: "jfg118"
- icomment:
Ticket change [da7a0cd28c] (rid 107795) by jfg118 on 2006-03-09 07:22:52:
- icomment:
File Deleted - 154638: File Added - 170266: win-tclWinFile.c.diff-u
- login: "jfg118"
- mimetype: "text/plain"
- username: "jfg118"
- icomment:
Ticket change [94e4c8c4b9] (rid 106077) by jfg118 on 2006-03-09 07:22:53:
- icomment:
File Deleted - 154636:
- login: "jfg118"
- mimetype: "text/plain"
- username: "jfg118"
- icomment:
Ticket change [9f9f38f28b] (rid 96669) by vincentdarley on 2006-03-09 18:30:43:
- icomment:
Logged In: YES user_id=32170 Applied to cvs HEAD.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [293a063771] (rid 88837) by fvogelnew1 on 2006-03-09 19:36:31:
- icomment:
Logged In: YES user_id=1245417 Many many thanks to all contributors for this effort. I really appreciate it. I understand that the next 8.5 release will then include the patch. Is there any chance to have it also in the upcoming 8.4.13? I would switch to 8.4.13 rather than 8.5 which is still alpha. Thanks again, Francois
- login: "fvogelnew1"
- mimetype: "text/plain"
- username: "fvogelnew1"
- icomment:
Ticket change [a26d53c6dd] (rid 109892) by jfg118 on 2006-03-11 05:13:12:
- icomment:
Logged In: YES user_id=1266631 Updated patch to only ignore the read-only flag if it is a directory, as the directory is the only special case.
- login: "jfg118"
- mimetype: "text/plain"
- username: "jfg118"
- icomment:
Ticket change [a2fa165764] (rid 109983) by jfg118 on 2006-03-11 05:13:13:
- icomment:
File Deleted - 170266:
- login: "jfg118"
- mimetype: "text/plain"
- username: "jfg118"
- icomment:
Add attachment "win-tclWinFile.c.diff-u" [7e53ab043d] (rid 97393) by jfg118 on 2006-03-11 05:13:59.
Ticket change [94335451e1] (rid 105946) by jfg118 on 2006-03-11 05:14:00:
- icomment:
File Added - 170510: win-tclWinFile.c.diff-u
- login: "jfg118"
- mimetype: "text/plain"
- username: "jfg118"
- icomment:
Ticket change [6694262218] (rid 102737) by jfg118 on 2006-03-14 06:57:39:
- icomment:
Logged In: YES user_id=1266631 Attached patch based on Tcl 8.4.12. The patch modified the testchmod command to apply an ACL change on windows to make the directory non writable. Detailed testcase analysis on duplicate bug 1193497.
- login: "jfg118"
- mimetype: "text/plain"
- username: "jfg118"
- icomment:
Add attachment "generic-testTcl.c.diff-u" [b829391a27] (rid 128925) by jfg118 on 2006-03-14 06:57:39.
Ticket change [7c8b36ec6f] (rid 97097) by jfg118 on 2006-03-14 06:58:07:
- icomment:
File Added - 170804: generic-testTcl.c.diff-u
- login: "jfg118"
- mimetype: "text/plain"
- username: "jfg118"
- icomment:
Ticket change [1c651a7e4b] (rid 90597) by vincentdarley on 2006-03-20 02:37:48:
- closedate changed to: "2006-03-19T19:37:48"
- closer changed to: "vincentdarley"
- resolution changed to: "Fixed"
- status changed to: "Closed"