summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2007-01-04 14:45:14 +0100
committerTobias Klauser <tklauser@xenon.tklauser.home>2007-01-04 14:45:14 +0100
commitb356ec8affa09366306c3d93fecc87d3fe1d2f9c (patch)
tree3487181497032696d5e6af28fb161c4a8e01ea15
parentd7bb74a7a46bd87d48eeea50025a6007cdfeb732 (diff)
inotail.c: Make it clear that we're handling one file when tailing stdin
-rw-r--r--inotail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inotail.c b/inotail.c
index 3f08360..26092d3 100644
--- a/inotail.c
+++ b/inotail.c
@@ -440,7 +440,7 @@ int main(int argc, char **argv)
} else {
/* It must be stdin then */
static char *dummy_stdin = "-";
- n_files++;
+ n_files = 1;
filenames = &dummy_stdin;
/* POSIX says that -f is ignored if no file operand is