GNU bug report logs - #67490
[PATCH v2] tail: fix tailing sysfs files on large page kernels

Previous Next

Package: coreutils;

Reported by: dann frazier <dann.frazier <at> canonical.com>

Date: Mon, 27 Nov 2023 17:31:02 UTC

Severity: normal

Tags: patch

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: dann frazier <dann.frazier <at> canonical.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 67490 <at> debbugs.gnu.org
Subject: bug#67490: [PATCH] tail: fix following /proc and /sys files when using a 64K page size
Date: Tue, 28 Nov 2023 17:38:52 -0700
On Mon, Nov 27, 2023 at 11:17:57AM -0800, Paul Eggert wrote:
> On 2023-11-27 08:24, dann frazier wrote:
> > +  if (fstat (fd, &stats) != 0)
> > +    {
> > +      error (0, errno, _("cannot fstat %s"), quoteaf (pretty_filename));
> > +      return false;
> > +    }
> > +
> > +  bufsize = ST_BLKSIZE (stats);
> 
> 
> If fstat fails, that's no reason to exit. Just use bufsize
> = BUFSIZ and keep going. fstat can fail for reasons
> unrelated to what 'tail' needs (e.g., time_t overflow).

Thanks for the suggestion - I'll make that change.

  -dann




This bug report was last modified 1 year and 174 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.