Re: [PATCH v2 5/6] connect: advertise OS version
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 17, 2025, 23:04 UTC
- Message-ID
- <xmqqjzathwkc.fsf@gitster.g>
- In-Reply-To
- <00bb01db6931$d7cd6dc0$87684940$@nexbridge.com>
<rsbecker@nexbridge.com> writes:
Show 10 quoted lines
>>So the question is again, do we ever need to use os_version() that is a raw > string >>that may require sanitizing? I do not think of any offhand. > > uname(2) is definitely not portable. uname(1) is almost always available, > but > there is no guarantee about uname(2). I am not entirely happy having my > builds break if having to write one between rc0 and rc1 when this rolls. How > is this being handled? os_version() is also not portable. What if we had > something that asked for specific elements of the string, by name or id.
Sorry, I fail to see anything in your paragraph that is relevant to what I said. Especially os_version() is a function that is implemented in the patchset, not something you would complain about being "not portable".