Subject: CVS commit: pkgsrc/sysutils/psmisc
From: Michael Forney
Date: 2020-10-06 02:19:05
Message id: 20201006001905.8D5B3FB28@cvs.NetBSD.org

Log Message:
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] \ 
https://gitlab.com/psmisc/psmisc/-/commit/ca2b176889729a7347bd95b832b9a5bb39fec229

Files:
RevisionActionfile
1.33modifypkgsrc/sysutils/psmisc/Makefile
1.9modifypkgsrc/sysutils/psmisc/distinfo
1.7modifypkgsrc/sysutils/psmisc/patches/patch-af