[PATCH] Remove hardcoded static string length

David Laight David.Laight at ACULAB.COM
Thu May 25 08:04:33 PDT 2023


From: Kenny Ho
> Sent: 25 May 2023 15:28
> To: David Laight <David.Laight at ACULAB.COM>
> Cc: Andrew Lunn <andrew at lunn.ch>; Marc Dionne <marc.dionne at auristor.com>; Kenny Ho <Kenny.Ho at amd.com>;
> David Howells <dhowells at redhat.com>; David S. Miller <davem at davemloft.net>; Eric Dumazet
> <edumazet at google.com>; Jakub Kicinski <kuba at kernel.org>; Paolo Abeni <pabeni at redhat.com>; linux-
> afs at lists.infradead.org; netdev at vger.kernel.org; linux-kernel at vger.kernel.org
> Subject: Re: [PATCH] Remove hardcoded static string length
> 
> On Thu, May 25, 2023 at 5:14 AM David Laight <David.Laight at aculab.com> wrote:
> >
> > I does rather beg the question as what is in UTS_RELEASE when
> > it exceeds (IIRC) about 48 characters?
> 
> Thanks for the question as it made me dig deeper.  UTS_RELEASE is
> actually capped at 64:
...

But isn't UTS_RELEASE usually much shorter?
I think it is what 'uname -r' prints, the longest I've seen recently
is "3.10.0-1127.19.1.el7.x86_64" - well under the limit.

...
> 
> "The standard formulation seems to be: <project> <version> built
> <yyyy>-<mm>-<dd>"

Which I don't recall the string actually matching?
Also the people who like reproducible builds don't like __DATE__.

	David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)


More information about the linux-afs mailing list