From: Yann Collet Date: Thu, 27 Mar 2025 02:21:48 +0000 (-0700) Subject: add error message clarification for inputs as process substitution X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=8626da73b6596bdd30c1289525db59f09737226d;p=thirdparty%2Fzstd.git add error message clarification for inputs as process substitution --- diff --git a/programs/fileio.c b/programs/fileio.c index 6514bf32c..6c6faa485 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -660,6 +660,9 @@ FIO_openDstFile(FIO_ctx_t* fCtx, FIO_prefs_t* const prefs, #endif if (f == NULL) { DISPLAYLEVEL(1, "zstd: %s: %s\n", dstFileName, strerror(errno)); + if (UTIL_isFileDescriptorPipe(dstFileName)) { + DISPLAYLEVEL(1, "When using process substitution (<(...)), specify an output destination with -o or -c. \n"); + } } else { /* An increased buffer size can provide a significant performance * boost on some platforms. Note that providing a NULL buf with a