mirror of
https://git.busybox.net/busybox
synced 2026-01-31 16:43:21 +00:00
tailk: fix error detected by testsuite
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
f9782ffc45
commit
6eaeb7737d
1 changed files with 2 additions and 1 deletions
|
|
@ -241,7 +241,8 @@ int tail_main(int argc, char **argv)
|
|||
} while (nwrite);
|
||||
}
|
||||
}
|
||||
xwrite(STDOUT_FILENO, buf + nread - nwrite, nwrite);
|
||||
if (nwrite > 0)
|
||||
xwrite(STDOUT_FILENO, buf + nread - nwrite, nwrite);
|
||||
} else if (count) {
|
||||
if (COUNT_BYTES) {
|
||||
taillen += nread;
|
||||
|
|
|
|||
Loading…
Reference in a new issue