Overview
| Artifact ID: | 438eb731dac55bca9760c7da6f16510f80ffdb5b |
|---|---|
| Ticket: | 698146ffffffffffffffffffffffffffffffffff
file atime & mtime broken for 64 bit OSs |
| User & Date: | jods on 2003-03-05 18:26:56 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
When tcl is compiled for a 64-bit IRIX64 platform the 'file atime' and 'file mtime' commands do not set the times correctly. This is due to a bug in tclCmdAH.c : Line 841 - 844 contain if (Tcl_GetLongFromObj(interp, objv[3], (long*)(&buf.st_atime)) != TCL_OK) { return TCL_ERROR; } But the stat buf contains 32 bit ints for atime & mtime, not 64 bit longs, so the code could be replaced with this: long along; if (Tcl_GetLongFromObj(interp, objv[3], &along) != TCL_OK) { return TCL_ERROR; } buf.st_mtime = along; Where the last line implicitly does the type conversion. Similar for mtime. - foundin changed to: "obsolete: 8.4.2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "jods"
- subsystem changed to: "16. Commands A-H"
- title changed to: "file atime & mtime broken for 64 bit OSs"
- type changed to: "Bug"