|
2005-01-14
| ||
| 21:17 | • Ticket [1100671fff] Hard-coded attribute number for -permissions status stil... artifact: c965d0e8ed user: dkf | |
| 21:17 | • Closed ticket [1100671fff]. artifact: df6b424d7f user: dkf | |
|
2005-01-13
| ||
| 01:37 | • Ticket [1100671fff]: 4 changes artifact: 08c0d8679e user: vincentdarley | |
| 01:37 | • Add attachment fileperm.diff to ticket [1100671fff] artifact: 60959ad754 user: vincentdarley | |
| 01:37 | • Ticket [1100671fff] Hard-coded attribute number for -permissions status stil... artifact: 630f3a3e62 user: vincentdarley | |
| 00:10 | • Ticket [1100671fff]: 4 changes artifact: 284b6a9752 user: vincentdarley | |
|
2005-01-12
| ||
| 05:45 | • New ticket [1100671fff]. artifact: 1becef7034 user: coldstore | |
Hard-coded attribute number for -permissions
Closed / Fixed1100671fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2005-01-12 05:45:41
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.
vincentdarleyplain2005-01-13 00:10:31
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.
vincentdarleyplain2005-01-13 01:37:54
Logged In: YES user_id=32170 Can you please test the attached patch?
vincentdarleyplain2005-01-13 01:37:57
File Added - 115595: fileperm.diff
dkfplain2005-01-14 21:17:46
Logged In: YES user_id=79902 Fixed in HEAD using helper function: TclFSFileAttrIndex.
dkf Ticket [1100671fff]: 2 changes
[History diff]2005-01-14 21:17:47
Log in (anonymous is fine) to add a comment.
Attachments:
- fileperm.diff [download] added by vincentdarley on 2005-01-13 01:37:57. [details]