author | Pat Thoyts <patthoyts@users.sourceforge.net> | |
Tue, 15 Sep 2009 09:26:30 +0000 (10:26 +0100) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Mon, 21 Sep 2009 03:04:48 +0000 (13:04 +1000) | ||
commit | 9bedb0e185332f9f8fb5e1c18bb5aff9964145a6 | |
tree | ca20781e00ed3dd67f41d4384d7995ad430c52a4 | tree | snapshot |
parent | c21398be6d7b112fa3a041b4b7d869d9954bf753 | commit | diff |
gitk: Work around leftover temporary save file
If a file exists and is hidden on Windows the Tcl open command will
fail as the attributes provided in the CREAT call fail to match those
of the existing file. Forcing removal of the temporary file before we
begin solves any problems caused by previous failures to save the
application settings. An alternative would be to remove the hidden
attribute before calling 'open'.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
If a file exists and is hidden on Windows the Tcl open command will
fail as the attributes provided in the CREAT call fail to match those
of the existing file. Forcing removal of the temporary file before we
begin solves any problems caused by previous failures to save the
application settings. An alternative would be to remove the hidden
attribute before calling 'open'.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | diff | blob | history |