summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2006-12-08 21:08:10 +0100
committerTobias Klauser <tklauser@xenon.tklauser.home>2006-12-08 21:08:10 +0100
commit8504caa7284ddf98de53fea4cccdb8ce57627ae4 (patch)
treedb7b05397862193f676c259f353ad1634c5cd470
parent517469b48f49edc4d4230e3ae1648d7306d72a62 (diff)
inotail.c: Yet another user for IS_PIPELIKE
-rw-r--r--inotail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inotail.c b/inotail.c
index f16b23b..01df96b 100644
--- a/inotail.c
+++ b/inotail.c
@@ -245,7 +245,7 @@ static int tail_file(struct file_struct *f, unsigned int n_units, char mode)
}
/* We cannot seek on these */
- if (S_ISFIFO(finfo.st_mode) || S_ISSOCK(finfo.st_mode) || f->fd == STDIN_FILENO)
+ if (IS_PIPELIKE(finfo.st_mode) || f->fd == STDIN_FILENO)
return tail_pipe(f);
f->st_size = finfo.st_size;