summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/check_utility_compat.c
Commit message (Collapse)AuthorAgeFilesLines
* - Reduce buffer size from LINE_MAX to PATH_MAX, there is no point to storedelphij2012-12-211-8/+4
| | | | | | | | | | path longer than this. - Fix an unreached case of check against sizeof buf, which in turn leads to an off-by-one nul byte write on the stack. The original condition can never be satisfied because the passed boundary is the maximum value that can be returned, so code was harmless. MFC after: 1 month
* Back out the `hiding' of strlcpy and strlcat. Several peoplenectar2003-05-011-3/+6
| | | | vocally objected to this safety belt.
* `Hide' strlcpy and strlcat (using the namespace.h / __weak_referencenectar2003-04-291-6/+3
| | | | | | | technique) so that we don't wind up calling into an application's version if the application defines them. Inspired by: qpopper's interfering and buggy version of strlcpy
* Create a small library function, check_utility_compat(3), to determinewollman2002-10-281-0/+75
whether a named utility should behave in FreeBSD 4.x-compatible mode or in a standard mode (default standard). The configuration is done malloc(3)-style, with either an environment variable or a symlink. Update expr(1) to use this new interface.
OpenPOWER on IntegriCloud