diff options
author | dkf <dkf@noemail.net> | 2005-07-28 10:55:26 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2005-07-28 10:55:26 (GMT) |
commit | 1cb696b1bdf0107a07227bb19fcdeb7b56fe1bba (patch) | |
tree | b6f48053c0501e02ccac6dcd024853731f4caa79 /unix/tclUnixPipe.c | |
parent | 21f28fdc2f374e2a310d14b577283ece1900f4b1 (diff) | |
download | tcl-1cb696b1bdf0107a07227bb19fcdeb7b56fe1bba.zip tcl-1cb696b1bdf0107a07227bb19fcdeb7b56fe1bba.tar.gz tcl-1cb696b1bdf0107a07227bb19fcdeb7b56fe1bba.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]
FossilOrigin-Name: 6c8172e1e625508afeb06c7e001f5533e8e46c40
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 b19f042..3dcf829 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.30 2005/07/24 22:56:45 dkf Exp $ + * RCS: @(#) $Id: tclUnixPipe.c,v 1.31 2005/07/28 10:55:37 dkf Exp $ */ #include "tclInt.h" @@ -156,7 +156,7 @@ TclpOpenFile(fname, mode) * 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); } |