tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: printf and -m



On Fri, Aug 21, 2015 at 12:43:10PM -0400, Christos Zoulas wrote:
 > We should decide what we want to do:
 > 
 > - Make %m work in printf() like linux does.
 > - Apply the following patch to prevent programs use %m in printf formats,
 >   keep fixing 3rd party code, and maintain the custom format attribute to
 >   find new offenders. It is unlikely that the gnu folks will take a patch
 >   that makes %m warn for printf. We could coordinate with other BSD's to
 >   do the same. Note that this patch can break pkgsrc code...

The second, please.

I also think we should deprecate %m in syslog, but I don't see how
it's possible to do so in practice.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index