Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4ef4fb8dbf15c16b7c2f9cbd26c015780445c443888aaec295313e68daf59c1e
Ticket: 1613456fffffffffffffffffffffffffffffffff
file readable lies with samba shared folder or file
User & Date: bll on 2018-03-22 13:20:41
Changes

  1. icomment:
    Attached access.dll, uses this code, which does not match my prior test:
    
    #include <tcl.h>
    #include <string.h>
    #include <windows.h>
    #include <io.h>
    
    int accessObjCmd (
      ClientData cd,
      Tcl_Interp* interp,
      int objc,
      Tcl_Obj * const objv[]
      )
    {
      int rc, lt1;
      const char* s1;
    
      if (objc != 2) {
        Tcl_WrongNumArgs(interp, 1, objv, "filename");
        return TCL_ERROR;
      }
      s1 = Tcl_GetStringFromObj(objv[1], &lt1);
      rc = _access_s (s1, R_OK);
      Tcl_SetObjResult (interp, Tcl_NewBooleanObj (1-rc));
      return TCL_OK;
    }
    
    int Access_Init (Tcl_Interp *interp)
    {
      if (!Tcl_InitStubs (interp,"8.3",0)) {
        return TCL_ERROR;
      }
      Tcl_CreateObjCommand (interp,"access", accessObjCmd, NULL, NULL);
      Tcl_PkgProvide (interp,"access","0.1");
    
      return TCL_OK;
    }
    
  2. login: "bll"
  3. mimetype: "text/plain"