Skip to content
Tcl Source Code History Of Ticket 3539231fffffffff
Login

History Of Ticket 3539231fffffffff

Artifacts Associated With Ticket 3539231fffffffff

  1. Ticket change [8d7d9a4506] (rid 127942) by blacksqr on 2012-07-01 04:13:03:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      When a user account is created whose name has a dash in it, attempting to glob the account's home directory results in an extra slash appearing in the result path string:
      
      $ useradd -b /home/ -p dash -m dash-user
      $ tclsh
      % info patchlevel
      8.5.11
      % glob ~dash-user
      /home//dash-user
      
      Ubuntu 12.04 64-bit.  Tclsh installed from default repository using apt-get.
      
    4. foundin initialized to: "obsolete: 8.5.11"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "blacksqr"
    10. subsystem initialized to: "16. Commands A-H"
    11. title initialized to: "glob tilde expansion injects extra slash."
    12. type initialized to: "Bug"
  2. Ticket change [e6c4c96b30] (rid 104348) by dkf on 2012-07-02 16:38:05:

    1. icomment:
      The system has an obviously non-normalized name for the user's home directory? That's... well, not really Tcl's fault IMO (there are cases where normalizing would be bad IIRC, such as automounters). My inclination would be Wont Fix, but I don't claim to be an expert on what [glob] should do here.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [4cffdc663f] (rid 126990) by dkf on 2012-07-02 16:38:06:

    1. assignee changed to: "vincentdarley"
    2. priority changed to: "3 Low"
    3. subsystem changed to: "36. Pathname Management"
  4. Ticket change [32d996908f] (rid 93689) by dgp on 2012-07-02 22:21:09:

    1. assignee changed to: "dgp"
  5. Ticket change [573f0b8cb9] (rid 94452) by dgp on 2012-07-03 00:08:05:

    1. icomment:
      What does
      
      file normalize [lindex [glob ~dash-user] 0]
      
      return?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [e56c379320] (rid 104114) by dgp on 2012-07-03 00:15:38:

    1. icomment:
      Any testing you can do to determine whether the
      bad results come back from the getpwnam* system
      calls or not would be useful.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [819035e4f2] (rid 117062) by blacksqr on 2012-07-03 11:21:12:

    1. icomment:
      % file normalize [lindex [glob ~dash-user] 0]
      /home/dash-user
      
      
      
      
    2. login: "blacksqr"
    3. mimetype: "text/plain"
    4. username: "blacksqr"
  8. Ticket change [aac0311b03] (rid 100981) by dgp on 2012-07-05 21:17:30:

    1. closedate changed to: "2012-07-05T14:17:30"
    2. closer changed to: "dgp"
    3. icomment:
      I don't have root on any linux systems, so I cannot reproduce
      the issue.  Best I can tell from examining the Tcl source code,
      whichever of the system's getpwnam* family of system calls
      is called is returning the non-normalized result.  The system tells
      Tcl this is the home directory to use, and Tcl believes the system
      and stores it for future use when talking to the system again.
      That seems like the right thing to be doing.  I'd say "Not a Bug."
      
      If someone with ability to reproduce can dig out more details that
      contradict that view, please speak up.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Pending"
    8. username: "dgp"
  9. Ticket change [bfae91d1f2] (rid 135560) by dkf on 2013-11-12 12:37:47:

    1. closedate changed to: "2456609.02624157"
    2. closer changed to: "dkf"
    3. comment changed to:
      When a user account is created whose name has a dash in it, attempting to glob the account's home directory results in an extra slash appearing in the result path string:
      
      $ useradd -b /home/ -p dash -m dash-user
      $ tclsh
      % info patchlevel
      8.5.11
      % glob ~dash-user
      /home//dash-user
      
      Ubuntu 12.04 64-bit.  Tclsh installed from default repository using apt-get.
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. severity changed to: "Minor"
    7. status changed to: "Closed"