summaryrefslogtreecommitdiff
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 storeXin LI2012-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 Notes: svn path=/head/; revision=244568
* Back out the `hiding' of strlcpy and strlcat. Several peopleJacques Vidrine2003-05-011-3/+6
| | | | | | | vocally objected to this safety belt. Notes: svn path=/head/; revision=114443
* `Hide' strlcpy and strlcat (using the namespace.h / __weak_referenceJacques Vidrine2003-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 Notes: svn path=/head/; revision=114256
* Create a small library function, check_utility_compat(3), to determineGarrett Wollman2002-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. Notes: svn path=/head/; revision=106065