* lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 12 Jan 2007 21:54:50 +0000 (21:54 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 12 Jan 2007 21:54:50 +0000 (21:54 +0000)
commit662e273931461d8aed89f64ea9ceb1618916e180
tree0931ae07fc8d7905c7c1cf31ebbc849a0512d88c
parent331c77cb55ff05ebc2bf0d167d6ed2a508a20d9a
* lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
to a reasonable default for memory allocation.
(xreadlink): Don't allocate a huge buffer, to work around a buggy
file system that reports garbage st_size values for symlinks.
Problem reported by Liyang Hu.
ChangeLog
lib/xreadlink.c