Skip to content
Tcl Source Code History Of Ticket 2893771
Login

History Of Ticket 2893771

Artifacts Associated With Ticket 2893771

  1. Ticket change [6f926fb4f9] (rid 100339) by patthoyts on 2009-11-07 10:21:21:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      On Windows the page file c:\pagefile.sys is always open and locked. In NativeAccess we try using GetFileAttributes but this will return ERROR_SHARING_VIOLATION and -1, leading Tcl to believe the file does not exist. Similar code is in NativeStat fails for the same reason. So we cannot currently test for the existence or size or mtime for this file. However if we then try FindFirstFile for the pathname we can get this information even though the file is in use.
      The attached patch tries FindFirstFile when GetFIleAttributes fails. GFA is a bit faster on my system than FFF so I prefer to only try this when necessary. I've not checked for the GetLastError() code as well as I don't know if other error codes might still be appropriate for continuing to check using FFF.
      
    4. foundin initialized to: "obsolete: 8.6b1"
    5. is_private initialized to: "0"
    6. priority initialized to: "6"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "patthoyts"
    10. subsystem initialized to: "37. File System"
    11. title initialized to: "file stat fails on locked files on win32"
    12. type initialized to: "Bug"
  2. Ticket change [65551b2b37] (rid 102525) by patthoyts on 2009-11-07 17:21:23:

    1. icomment:
      
      
      File Added - 349887: file-stat.patch
      
      
      
    2. login: "patthoyts"
    3. mimetype: "text/plain"
    4. username: "patthoyts"
  3. Add attachment "file-stat.patch" [87c37bb659] (rid 131756) by patthoyts on 2009-11-07 17:21:23.

  4. Ticket change [2a233ddb34] (rid 118501) by patthoyts on 2009-11-24 07:08:50:

    1. closedate changed to: "2009-11-24T00:08:50"
    2. closer changed to: "patthoyts"
    3. icomment:
      
      
      allow_comments - 1
      
      I have applied this patch with a new test to the HEAD 8.6 code.
      
      
    4. login: "patthoyts"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "patthoyts"
  5. Ticket change [1511bc5682] (rid 124503) by nijtmans on 2013-03-19 18:50:19:

    1. assignee changed to: "nijtmans"
    2. icomment:
      
      
      allow_comments - 0
      
      Had to back out this patch, because of bug [3608360]: Incompatible behaviour of "file exists".
      
      
    3. login: "nijtmans"
    4. mimetype: "text/plain"
    5. resolution changed to: "None"
    6. status changed to: "Open"
    7. username: "nijtmans"
  6. Ticket change [51e1f732cf] (rid 126205) by nijtmans on 2013-03-19 19:03:40:

    1. icomment:
      I would prefer another solution for this problem. If GetFileAttributes() returns
      ERROR_SHARING_VIOLATION, then we know that the file exists but
      is not readable and not writable. Let's thread that as a special case.
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  7. Ticket change [610d4f2a73] (rid 92181) by nijtmans on 2013-03-19 21:26:34:

    1. closedate changed to: "2013-03-19T14:26:34"
    2. closer changed to: "nijtmans"
    3. icomment:
      
      
      allow_comments - 1
      
      Fixed now on all branches.
      
      
    4. login: "nijtmans"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "nijtmans"