Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Sep 2022 13:05:14 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: d223449d6ba9 - stable/13 - tail: Initialize the stat buffer used when input is stdin
Message-ID:  <202209151305.28FD5ETZ087510@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=d223449d6ba9ec81f0c7629f0cc1a83e8168e3af

commit d223449d6ba9ec81f0c7629f0cc1a83e8168e3af
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-09-08 20:21:39 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-09-15 13:04:07 +0000

    tail: Initialize the stat buffer used when input is stdin
    
    PR:             266284
    Reported by:    Jenkins via delphij
    Fixes:          7e11889959a6 ("tail: Fix -f with stdin")
    
    (cherry picked from commit e599810ded07590708437cf58b8dd05f7cb474e5)
---
 usr.bin/tail/tail.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/usr.bin/tail/tail.c b/usr.bin/tail/tail.c
index 874557f105ec..2ed41586d9e9 100644
--- a/usr.bin/tail/tail.c
+++ b/usr.bin/tail/tail.c
@@ -263,6 +263,7 @@ main(int argc, char *argv[])
 		} else if (fflag) {
 			file.file_name = fn;
 			file.fp = stdin;
+			file.st = sb;
 			follow(&file, style, off);
 		} else {
 			forward(stdin, fn, style, off, &sb);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209151305.28FD5ETZ087510>