Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7b10e97bcc9729364177047fdb9ca882a1d1586d
Ticket: 488530ffffffffffffffffffffffffffffffffff
setuid Tcl scripts don't work on Solaris
User & Date: kennykb on 2001-12-04 22:01:14
Changes

  1. icomment:
    Logged In: YES 
    user_id=99768
    
    The user in question already has a workaround of separating the setuid shell script from the Tcl script: 
    http://mini.net/tcl/2654.html 
    
    The proposed workaround depends on the size of the buffer used in /bin/sh.  There really isn't any reason 
    for the shell to reposition its script file before doing an exec, so I'd be really reluctant to call this a shell 
    bug.  Note that one expects the script to restart from the beginning, as it would if the /dev/fd hack weren't 
    there.
    
    I think that the underlying bug is in the kernel, that opening /dev/fd/N doesn't do a rewind.  It should, if the 
    implementors are going to use this hack on setuid shell scripts.
    
    
  2. login: "kennykb"
  3. mimetype: "text/plain"
  4. username: "kennykb"