summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixPipe.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2005-07-28 15:27:55 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2005-07-28 15:27:55 (GMT)
commit425be14f5a21104533dbeb1df9edd1bc5363b2b1 (patch)
tree7ba16447fabfdc490e4f2e994c70b93f0f086cad /unix/tclUnixPipe.c
parenta11fa9c7b80f3d0e7ef52862e03d260647cb05ea (diff)
downloadtcl-425be14f5a21104533dbeb1df9edd1bc5363b2b1.zip
tcl-425be14f5a21104533dbeb1df9edd1bc5363b2b1.tar.gz
tcl-425be14f5a21104533dbeb1df9edd1bc5363b2b1.tar.bz2
Backport of fix for [Bug 1245953]
Diffstat (limited to 'unix/tclUnixPipe.c')
-rw-r--r--unix/tclUnixPipe.c4
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);
}