Overview
| Artifact ID: | d09a9f20f2dc139ce1bd63bd9cc29f27d8df0787 |
|---|---|
| Ticket: | 458576ffffffffffffffffffffffffffffffffff
Failure of [file type] on large files |
| User & Date: | vincentdarley on 2001-09-07 00:44:25 |
Changes
- icomment:
Logged In: YES user_id=32170 I'm afraid '--enable-64bits' is badly named and nothing to do with this. Adding a flag to every use of lstat for one particular purpose seems like a mess (how many other 'one particular purposes' can we think of). Another option might be for this code in tclCmdAH.c: case FILE_TYPE: { struct stat buf; if (objc != 3) { goto only3Args; } if (GetStatBuf(interp, objv[2], Tcl_FSLstat, &buf) != TCL_OK) { return TCL_ERROR; } Tcl_SetStringObj(Tcl_GetObjResult(interp), GetTypeFromMode((unsigned short) buf.st_mode), -1); return TCL_OK; } to check if 'Tcl_GetErrno()' is EOVERFLOW and if so not to return TCL_ERROR, but rather to go ahead and use the information it needs anyway. This assumes that when 'lstat' fails with EOVERFLOW it still fills in the entries it can in the stat buffer. Feel free to test this out and contribute a patch. - login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"