aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2024-12-23 17:15:57 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2024-12-23 17:16:14 +0000
commit893839b119880d3fe8ab18aba4563af6c80cb875 (patch)
tree95687182c984e5e6f6dc3b4687d0c3bce61f4246
parentb45f84cc6213854ead00a4bfc7973332eda65676 (diff)
-rw-r--r--usr.bin/diff/diffreg_new.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/diff/diffreg_new.c b/usr.bin/diff/diffreg_new.c
index af9104559986..f54cd554ccad 100644
--- a/usr.bin/diff/diffreg_new.c
+++ b/usr.bin/diff/diffreg_new.c
@@ -314,8 +314,8 @@ openfile(const char *path, char **p, struct stat *st)
bool
can_libdiff(int flags)
{
- /* We can't use fifos with libdiff yet */
- if (S_ISFIFO(stb1.st_mode) || S_ISFIFO(stb2.st_mode))
+ /* libdiff's atomizer can only deal with files */
+ if (!S_ISREG(stb1.st_mode) || !S_ISREG(stb2.st_mode))
return false;
/* Is this one of the supported input/output modes for diffreg_new? */