mirror of
git://git.sv.gnu.org/coreutils
synced 2026-05-29 12:05:17 -04:00
beb34bac0a
Use ssize_t, not int, to store result of readlink. Check for ssize_t overflow as well as size_t overflow, as POSIX says the result of readlink is implementation-defined when ssize_t overflows. Remove unnecessary cast to char*. Use free+malloc instead of realloc, as the storage doesn't need to be preserved and it's clearer and can be more efficient that way. (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
The files in this directory are shared between the fileutils, sh-utils, and textutils packages. Not all files are used by each package. The autoconf tests required for these files are in ../m4. The library name, fetish, is a permutation of the first two letters of each of the package names: FIleutils, TExtutils, SH-utils.