pkgsrc/sysutils/psmisc/distinfo
mcf 674af5d4ca psmisc: fix sscanf usage bug under musl libc
C99 says that the %15c conversion specifier matches *exactly* 15
characters, so if the process name is shorter than 15 characters,
it is not matched and 0 is returned. Some implementations (such as
glibc) return a match, even with fewer characters than the field
width, but this cannot be assumed.

Instead, use %15[^)], as in upstream commit [0], which matches a
non-empty sequence of characters other than ')'.

[0] ca2b176889
2020-10-06 00:19:05 +00:00

12 lines
748 B
Text

$NetBSD: distinfo,v 1.9 2020/10/06 00:19:05 mcf Exp $
SHA1 (psmisc-20.1.tar.gz) = e969a2f539b181c372b0f82bbbd430c4d57d5d6b
RMD160 (psmisc-20.1.tar.gz) = 48698ad9f431c881bcb42394f5c912ef91b84d2b
SHA512 (psmisc-20.1.tar.gz) = 14553afd185d968042a10eefadaec089f4deb821fee70b69d520565ccbaa485c65137af2279bcfc2abbfdeb3e35bad2beaa5357372fbe6cfa587d10e9bdc2f9b
Size (psmisc-20.1.tar.gz) = 57767 bytes
SHA1 (patch-ab) = 74134f6cd2ea0270fdbaff8c0acb9e40767cc5cb
SHA1 (patch-ac) = 9f9a7c7c5155345a1045aee70a2dd65a25ec7219
SHA1 (patch-ad) = 6e2886ca59160d161d334e276675f187f138db7c
SHA1 (patch-ae) = 484305118582c575f8c4827783aa3d5f57b25b5d
SHA1 (patch-af) = ecba31c5e44291e695eb4b9ea19b9a70cdbd3f67
SHA1 (patch-ag) = a03a4a0c0dbf065e2b2785cee8f23579a11ae13f