Skip to content
Tcl Source Code History Of Ticket 591647ffffffffff
Login

History Of Ticket 591647ffffffffff

Artifacts Associated With Ticket 591647ffffffffff

  1. Ticket change [637f96a155] (rid 92592) by vincentdarley on 2002-08-06 16:51:19:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Jeff,
      
      here's a patch (just one file changed) which will 
      make 'file copy' operate on files instead of links.  
      With this patch incorporated, one test (fCmd-
      28.15) needs modifying as well.  All other tests 
      should pass.
      
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "9 Immediate"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "vincentdarley"
    9. subsystem initialized to: "37. File System"
    10. title initialized to: "file copy patch to copy files not links"
    11. type initialized to: "Patch"
  2. Add attachment "tclFCmd.diff" [28359591f2] (rid 88656) by vincentdarley on 2002-08-06 23:51:19.

  3. Ticket change [554a12e294] (rid 94109) by vincentdarley on 2002-08-06 23:51:19:

    1. icomment:
      
      
      File Added - 28539: tclFCmd.diff
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  4. Ticket change [e29555de27] (rid 87655) by hobbs on 2002-08-08 15:56:36:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      had to update several more tests, but it is working now for 
      8.4b2.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. priority changed to: "7 High"
    5. resolution changed to: "Fixed"
    6. username: "hobbs"
  5. Ticket change [8e9275573d] (rid 120132) by hobbs on 2002-08-08 15:56:46:

    1. closedate changed to: "2002-08-08T08:56:46"
    2. closer changed to: "hobbs"
    3. status changed to: "Closed"
  6. Ticket change [839a96b102] (rid 117413) by hemanglavana on 2002-08-08 16:53:38:

    1. icomment:
      Logged In: YES 
      user_id=81875
      
      Here's a corner case which results in error when <srcfile>
      is a softlink and file copy is invoked from another
      directory:
      
      godel:43> ls -lR
      .:
      total 16
      drwxr-xr-x   2 hlavana  eng          141 Aug  8 05:47 test
      
      ./test:
      total 16
      lrwxrwxrwx   1 hlavana  eng            3 Aug  8 05:47 bar -> foo
      -rw-r--r--   1 hlavana  eng            0 Aug  8 05:46 foo
      godel:44> /tmp/hlavana/tcltk/bin/tclsh8.4 
      % file copy test/bar xxx
      error copying "test/bar" to "xxx": no such file or directory
      % cd test
      % file copy bar ../xxx
      % exit
      godel:45> ls -l
      total 16
      drwxr-xr-x   2 hlavana  eng          141 Aug  8 05:47 test
      -rw-r--r--   1 hlavana  eng            0 Aug  8 05:46 xxx
      godel:46> 
      
      Thus, softlinks pointing to relative paths need to converted
      into absolute paths first before invoking the real file copy.
      
      
    2. login: "hemanglavana"
    3. mimetype: "text/plain"
    4. username: "hemanglavana"
  7. Ticket change [aa0f8cd139] (rid 99258) by hobbs on 2002-08-08 17:40:32:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      this looks like it will have lots of little problems like this ... I'm 
      backing out the functionality for now, leaving the code #if 0'd 
      out.  The more I think about it, the more it actually seems 
      reasonable what Tcl was doing ... otherwise it seems like we 
      have to provide all sorts of options to enable the old behavior 
      for those that might have wanted it.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "hobbs"
  8. Ticket change [1e5d567992] (rid 90956) by nobody on 2002-08-13 20:16:18:

    1. icomment:
      Logged In: NO 
      
      This code should do it:
      
          Tcl_Obj *path = Tcl_FSLink(actualSource, NULL, 0);
          if (path == NULL) {
      break;
          }
          /* 
           * Now we want to check if this is a relative path,
           * and if so, to make it absolute
           */
          if (Tcl_FSGetPathType(path) == TCL_PATH_RELATIVE) {
      Tcl_Obj *abs = Tcl_FSJoinToPath
      (actualSource, 1, &path);
      if (abs == NULL) break;
      Tcl_IncrRefCount(abs);
      Tcl_DecrRefCount(path);
      path = abs;
          }
          Tcl_DecrRefCount(actualSource);
          actualSource = path;
          counter++;
      
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  9. Ticket change [5843381454] (rid 117771) by hobbs on 2002-09-03 01:39:53:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      This has been postponed for beyond 8.4, until it can be
      further discussed.  It's likely better to try it as a file
      copy option, or perhaps just as a tcllib function, due to
      all the funky cases that could be hit.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. priority changed to: "4"
    5. resolution changed to: "Postponed"
    6. username: "hobbs"
  10. Ticket change [c80c01fe48] (rid 122043) by hobbs on 2002-10-16 11:42:13:

    1. assignee changed to: "nobody"
  11. Ticket change [50841fea66] (rid 125985) by dgp on 2003-11-13 05:32:17:

    1. assignee changed to: "vincentdarley"