diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2005-07-28 10:55:26 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2005-07-28 10:55:26 (GMT) |
commit | 97b69e6ac0b3bfe72f1e3e4a490af5a45fb22776 (patch) | |
tree | b6f48053c0501e02ccac6dcd024853731f4caa79 /win/tclWinPipe.c | |
parent | 41ae541c110c5729d4467ce0c5c0a5bc9aa24d48 (diff) | |
download | tcl-97b69e6ac0b3bfe72f1e3e4a490af5a45fb22776.zip tcl-97b69e6ac0b3bfe72f1e3e4a490af5a45fb22776.tar.gz tcl-97b69e6ac0b3bfe72f1e3e4a490af5a45fb22776.tar.bz2 |
* generic/tclPipe.c (TclCreatePipeline): Arrange for POSIX systems to
* unix/tclUnixPipe.c (TclpOpenFile): use the O_APPEND flag for
* tests/exec.test (exec-19.1): files opened in a pipeline
like ">>this". Note that Windows cannot support such access; there is
no equivalent flag on the handle that can be set at the kernel-call
level. The test is unix-specific in every way. [Bug 1245953]
Diffstat (limited to 'win/tclWinPipe.c')
-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 c5814a7..d91b873 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.58 2005/07/24 22:56:49 dkf Exp $ + * RCS: @(#) $Id: tclWinPipe.c,v 1.59 2005/07/28 10:55:37 dkf Exp $ */ #include "tclWinInt.h" @@ -665,7 +665,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); } |