X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=libiberty%2Fpex-common.c;h=5f3a9628ed68a7e7dfdb8b5df8a2d6fb5fcb02f7;hb=301a9420d947da145884261ac31a7a52438c2894;hp=6fd3fdecd808b38ad024a7db14163795eb99a91f;hpb=4ff224cb8d9347245ffea0f5853d862f0574452e;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/pex-common.c b/libiberty/pex-common.c index 6fd3fdecd8..5f3a9628ed 100644 --- a/libiberty/pex-common.c +++ b/libiberty/pex-common.c @@ -1,5 +1,5 @@ /* Common code for executing a program in a sub-process. - Copyright (C) 2005, 2010 Free Software Foundation, Inc. + Copyright (C) 2005-2019 Free Software Foundation, Inc. Written by Ian Lance Taylor . This file is part of the libiberty library. @@ -267,7 +267,8 @@ pex_run_in_environment (struct pex_obj *obj, int flags, const char *executable, if (out < 0) { out = obj->funcs->open_write (obj, outname, - (flags & PEX_BINARY_OUTPUT) != 0); + (flags & PEX_BINARY_OUTPUT) != 0, + (flags & PEX_STDOUT_APPEND) != 0); if (out < 0) { *err = errno; @@ -319,8 +320,9 @@ pex_run_in_environment (struct pex_obj *obj, int flags, const char *executable, } else { - errdes = obj->funcs->open_write (obj, errname, - (flags & PEX_BINARY_ERROR) != 0); + errdes = obj->funcs->open_write (obj, errname, + (flags & PEX_BINARY_ERROR) != 0, + (flags & PEX_STDERR_APPEND) != 0); if (errdes < 0) { *err = errno;