Permit named pipes as input, as made by mkfifo() or mknod().
diff --git a/pigz.c b/pigz.c
index c59e0d3..fabc741 100644
--- a/pigz.c
+++ b/pigz.c
@@ -3500,9 +3500,10 @@
len = strlen(g.inf);
}
- /* only process regular files, but allow symbolic links if -f,
- recurse into directory if -r */
+ /* only process regular files or named pipes, but allow symbolic links
+ if -f, recurse into directory if -r */
if ((st.st_mode & S_IFMT) != S_IFREG &&
+ (st.st_mode & S_IFMT) != S_IFIFO &&
(st.st_mode & S_IFMT) != S_IFLNK &&
(st.st_mode & S_IFMT) != S_IFDIR) {
complain("skipping: %s is a special file or device", g.inf);