Skip to content

Commit

Permalink
Permit named pipes as input, as made by mkfifo() or mknod().
Browse files Browse the repository at this point in the history
  • Loading branch information
madler committed Aug 16, 2016
1 parent c7e0af8 commit f77dc7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pigz.c
Expand Up @@ -3500,9 +3500,10 @@ local void process(char *path)
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);
Expand Down

0 comments on commit f77dc7e

Please sign in to comment.