Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@xxxxxxxxxxxxxxxxxx> --- man2/tee.2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man2/tee.2 b/man2/tee.2 index 3160cfdf7..831c02b77 100644 --- a/man2/tee.2 +++ b/man2/tee.2 @@ -177,7 +177,7 @@ main(int argc, char *argv[]) exit(EXIT_FAILURE); } - do { + for (;;) { /* * tee stdin to stdout. */ @@ -204,7 +204,7 @@ main(int argc, char *argv[]) } len \-= slen; } - } while (1); + } close(fd); exit(EXIT_SUCCESS); -- 2.30.2
Attachment:
signature.asc
Description: PGP signature