Artifacts Associated With Ticket 1100671fffffffff
Ticket change [1becef7034] (rid 123237) by coldstore on 2005-01-12 05:45:41:
- assignee initialized to: "vincentdarley"
- cmimetype initialized to: "text/plain"
- comment initialized to:
tclFCmd.c line 539 in CopyRenameOneFile: Tcl_FSFileAttrsSet(NULL, 2, target, perm); tclIOUtil.c line 2980 in TclLoadFile: Tcl_FSFileAttrsSet(NULL, 2, copyToPtr, perm); Both assume that the -permissions file attribute has index 2 in the filesystem destination of the copy operation. This is only guaranteed to be the case for Unix native filesystems, as far as I can tell, and it completely ignores the attribute string table returned by the vfs layer for this file system. Either the index should be generated from the attribute string table, or it should be somewhere documented that attribute index 2 *must* be -permissions if you intend to use [file copy] over the vfs.
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "coldstore"
- subsystem initialized to: "37. File System"
- title initialized to: "Hard-coded attribute number for -permissions"
- type initialized to: "Bug"
Ticket change [284b6a9752] (rid 88676) by vincentdarley on 2005-01-13 00:10:31:
- icomment:
Logged In: YES user_id=32170 The second of these two examples is not really a problem, since we can be sure this is in the native filesystem (and the importance of '2' is documented in tclUnixFCmd.c). The first of your examples might operate on any file in any filesystem, however, so that one is a problem... Any patch to fix the problem appreciated.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [630f3a3e62] (rid 92510) by vincentdarley on 2005-01-13 01:37:54:
- icomment:
Logged In: YES user_id=32170 Can you please test the attached patch?
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [08c0d8679e] (rid 89614) by vincentdarley on 2005-01-13 01:37:57:
- icomment:
File Added - 115595: fileperm.diff
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Add attachment "fileperm.diff" [60959ad754] (rid 116024) by vincentdarley on 2005-01-13 01:37:57.
Ticket change [df6b424d7f] (rid 115015) by dkf on 2005-01-14 21:17:46:
- assignee changed to: "dkf"
- foundin changed to: "obsolete: 8.5a3"
- icomment:
Logged In: YES user_id=79902 Fixed in HEAD using helper function: TclFSFileAttrIndex.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"
Ticket change [c965d0e8ed] (rid 122278) by dkf on 2005-01-14 21:17:47:
- closedate changed to: "2005-01-14T14:17:47"
- closer changed to: "dkf"