diff options
author | donal.k.fellows@manchester.ac.uk <dkf> | 2005-07-28 15:27:55 (GMT) |
---|---|---|
committer | donal.k.fellows@manchester.ac.uk <dkf> | 2005-07-28 15:27:55 (GMT) |
commit | b6ba740162dd49dacf3fe2b1009de8881c04a8c7 (patch) | |
tree | 7ba16447fabfdc490e4f2e994c70b93f0f086cad /unix/tclUnixPipe.c | |
parent | 235a2abb3cf4c064b97d8f92894325b1f05798de (diff) | |
download | tcl-b6ba740162dd49dacf3fe2b1009de8881c04a8c7.zip tcl-b6ba740162dd49dacf3fe2b1009de8881c04a8c7.tar.gz tcl-b6ba740162dd49dacf3fe2b1009de8881c04a8c7.tar.bz2 |
Backport of fix for [Bug 1245953]
Diffstat (limited to 'unix/tclUnixPipe.c')
-rw-r--r-- | unix/tclUnixPipe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclUnixPipe.c b/unix/tclUnixPipe.c index dd9bc1c..0d3bd0b 100644 --- a/unix/tclUnixPipe.c +++ b/unix/tclUnixPipe.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixPipe.c,v 1.23.2.4 2005/06/22 19:36:35 kennykb Exp $ + * RCS: @(#) $Id: tclUnixPipe.c,v 1.23.2.5 2005/07/28 15:27:59 dkf Exp $ */ #include "tclInt.h" @@ -156,7 +156,7 @@ TclpOpenFile(fname, mode) * so we can append to any data already in the file. */ - if (mode & O_WRONLY) { + if ((mode & O_WRONLY) && !(mode & O_APPEND)) { TclOSseek(fd, (Tcl_SeekOffset) 0, SEEK_END); } |