diff options
author | dkf <dkf@noemail.net> | 2005-07-28 15:27:55 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2005-07-28 15:27:55 (GMT) |
commit | 819cb308b7f66c39b2b8f6cd753a452555e40b7c (patch) | |
tree | 7ba16447fabfdc490e4f2e994c70b93f0f086cad /win | |
parent | 7e8c0b543cc5c3766393a74986e8a61c3139bf79 (diff) | |
download | tcl-819cb308b7f66c39b2b8f6cd753a452555e40b7c.zip tcl-819cb308b7f66c39b2b8f6cd753a452555e40b7c.tar.gz tcl-819cb308b7f66c39b2b8f6cd753a452555e40b7c.tar.bz2 |
Backport of fix for [Bug 1245953]
FossilOrigin-Name: d4beef2f2f1e52209ef864539de2039617c80e71
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinPipe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c index 323302a..dc9a917 100644 --- a/win/tclWinPipe.c +++ b/win/tclWinPipe.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinPipe.c,v 1.33.2.13 2005/06/22 21:30:20 kennykb Exp $ + * RCS: @(#) $Id: tclWinPipe.c,v 1.33.2.14 2005/07/28 15:27:59 dkf Exp $ */ #include "tclWinInt.h" @@ -670,7 +670,7 @@ TclpOpenFile(path, mode) * Seek to the end of file if we are writing. */ - if (mode & O_WRONLY) { + if (mode & (O_WRONLY|O_APPEND)) { SetFilePointer(handle, 0, NULL, FILE_END); } |