Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 122981cd29a86585db0c3ae9ee35b6c72467d1e2
Ticket: 720634ffffffffffffffffffffffffffffffffff
Tcl_FSPathInFilesystemProc return value man page mismatch
User & Date: pcmacdon on 2003-04-13 14:01:38
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. 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) {
    
    
  4. foundin changed to: "obsolete: 8.4.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "pcmacdon"
  9. subsystem changed to: "None"
  10. title changed to:
    Tcl_FSPathInFilesystemProc return value man page mismatch 
    
  11. type changed to: "Bug"