From bbbf2b601e2f0bf9676ff300861803711ce5c44c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 4 Jan 2024 16:35:05 +0100 Subject: [PATCH] main: S_ISFIFO() matches both pipes and FIFOs --- CHANGELOG.md | 4 ++-- main.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef54b1d..4e18535 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,8 +18,8 @@ * battery: scale option, for batteries that report 'charge' at a different scale than 'current'. * network: new `quality` tag (Wi-Fi only). -* Read alternative config from pipes (e.g. `--config /dev/stdin`) - ([#340][340]). +* Read alternative config from pipes and FIFOs (e.g. `--config + /dev/stdin`) ([#340][340]). [340]: https://codeberg.org/dnkl/yambar/pulls/340 diff --git a/main.c b/main.c index 3a8b9f7..5d9df44 100644 --- a/main.c +++ b/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; }