forked from external/yambar
main: S_ISFIFO() matches both pipes and FIFOs
This commit is contained in:
parent
cb2561a72c
commit
bbbf2b601e
2 changed files with 3 additions and 3 deletions
2
main.c
2
main.c
|
@ -224,7 +224,7 @@ main(int argc, char *const *argv)
|
|||
fprintf(stderr, "%s: invalid configuration file: %s\n", optarg, strerror(errno));
|
||||
return EXIT_FAILURE;
|
||||
} else if (!S_ISREG(st.st_mode) && !S_ISFIFO(st.st_mode)) {
|
||||
fprintf(stderr, "%s: invalid configuration file: neither a regular file nor a pipe\n",
|
||||
fprintf(stderr, "%s: invalid configuration file: neither a regular file nor a pipe or FIFO\n",
|
||||
optarg);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue