Overview
| Artifact ID: | 122981cd29a86585db0c3ae9ee35b6c72467d1e2 |
|---|---|
| Ticket: | 720634ffffffffffffffffffffffffffffffffff
Tcl_FSPathInFilesystemProc return value man page mismatch |
| User & Date: | pcmacdon on 2003-04-13 14:01:38 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
The manpage for Tcl_FSPathInFilesystemProc says to return TCL_ERROR for path not belonging to vfs. When in fact the code expects -1. See below. ************************************************************** MANPAGE - PATHINFILESYSTEMPROC The pathInFilesystemProc field contains the address of a function which is called to determine whether a given path object belongs to this filesystem or not. Tcl will only call the rest of the filesystem functions with a path for which this function has returned TCL_OK. If the path does not belong, TCL_ERROR should be returned. ************************************************************* CODE - TclIOUtil.c (4875) /* * Call each of the "pathInFilesystem" functions in succession. A * non-return value of -1 indicates the particular function has * succeeded. */ while ((retVal == NULL) && (fsRecPtr != NULL)) { Tcl_FSPathInFilesystemProc *proc = fsRecPtr->fsPtr->pathInFilesystemProc; if (proc != NULL) { ClientData clientData = NULL; int ret = (*proc)(pathObjPtr, &clientData); if (ret != -1) { - foundin changed to: "obsolete: 8.4.2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "pcmacdon"
- subsystem changed to: "None"
- title changed to:
Tcl_FSPathInFilesystemProc return value man page mismatch
- type changed to: "Bug"