summaryrefslogtreecommitdiffstats
path: root/generic/tclPipe.c
diff options
context:
space:
mode:
authorferrieux <ferrieux@users.sourceforge.net>2017-08-24 16:56:51 (GMT)
committerferrieux <ferrieux@users.sourceforge.net>2017-08-24 16:56:51 (GMT)
commit2e9194366ab14876eaf9f689fe0808fc68477701 (patch)
tree147a113c91eebbea669e756992af82d64adc0402 /generic/tclPipe.c
parentce7266460628240a50654631d0f6665b35ec159e (diff)
downloadtcl-2e9194366ab14876eaf9f689fe0808fc68477701.zip
tcl-2e9194366ab14876eaf9f689fe0808fc68477701.tar.gz
tcl-2e9194366ab14876eaf9f689fe0808fc68477701.tar.bz2
Fix [b50fb214] : add to 2>> the same O_APPEND that was added to >> back in 2005.
Diffstat (limited to 'generic/tclPipe.c')
-rw-r--r--generic/tclPipe.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/generic/tclPipe.c b/generic/tclPipe.c
index d6cd188..b679ec4 100644
--- a/generic/tclPipe.c
+++ b/generic/tclPipe.c
@@ -668,7 +668,13 @@ TclCreatePipeline(
if (*p == '>') {
p++;
atOK = 0;
- flags = O_WRONLY | O_CREAT;
+
+ /*
+ * Note that the O_APPEND flag only has an effect on POSIX
+ * platforms. On Windows, we just have to carry on regardless.
+ */
+
+ flags = O_WRONLY | O_CREAT | O_APPEND;
}
if (errorClose != 0) {
errorClose = 0;