summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inotail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inotail.c b/inotail.c
index dca2605..735c4b7 100644
--- a/inotail.c
+++ b/inotail.c
@@ -548,7 +548,7 @@ static int tail_file(struct file_struct *f, unsigned long n_units, char mode)
if (strcmp(f->name, "-") == 0)
f->fd = STDIN_FILENO;
else {
- f->fd = open(f->name, O_RDONLY);
+ f->fd = open(f->name, O_RDONLY|O_LARGEFILE);
if (unlikely(f->fd < 0)) {
fprintf(stderr, "Error: Could not open file '%s' (%s)\n", f->name, strerror(errno));
return -1;