Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b7bdf606cc21802a0581050e379316f0a81ccd0e
Ticket: 681877ffffffffffffffffffffffffffffffffff
tcl_platform(user) is spoofable
User & Date: dgp on 2003-05-13 10:14:52
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    
    not really, but it is part of a larger
    observation that the contents of the
    tcl_platform are losing their coherence.
    
    the name "tcl_platform" suggests
    information about the platform on
    which the program is running, and
    most elements do that: platform,
    machine, os, osVersion, byteOrder,
    and wordSize.
    
    tcl_platform has added (sometimes) the elements
    threaded and/or debug, which really tell
    you about the variant of the Tcl library
    itself, not something about the platform.
    Data that would be better in something like
    tcl::config or [package about Tcl].
    
    Finally, we have tcl_platform(user), which
    turns out to just be an alternative name for
    the variable env(USER).  It has nothing to
    do with the platform, it duplicates something
    we already had, and because of that duplication,
    suggests the possibility of greater authority that
    isn't really there.  All (potential) confusion, and
    nearly zero utility.
    
    *If* tcl_platform(user) were connected to the
    getuid() call, at least then I could defend it as
    a poor interface to useful information.  Looks like
    a complete mistake as is.
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"