]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
add error message clarification for inputs as process substitution
authorYann Collet <cyan@fb.com>
Thu, 27 Mar 2025 02:21:48 +0000 (19:21 -0700)
committerYann Collet <cyan@fb.com>
Fri, 28 Mar 2025 16:18:17 +0000 (09:18 -0700)
programs/fileio.c

index 6514bf32c43cee97e0b523838df9305ab7b39a17..6c6faa485697d988001d4d2e6bc48af1f33dd71a 100644 (file)
@@ -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