mirror of
git://git.sv.gnu.org/coreutils
synced 2026-06-01 05:20:54 -04:00
(get_link_name): Update use of xreadlink.
This commit is contained in:
@@ -2641,7 +2641,7 @@ gobble_file (const char *name, enum filetype type, int explicit_arg,
|
||||
static void
|
||||
get_link_name (const char *filename, struct fileinfo *f)
|
||||
{
|
||||
f->linkname = xreadlink (filename);
|
||||
f->linkname = xreadlink (filename, f->stat.st_size);
|
||||
if (f->linkname == NULL)
|
||||
{
|
||||
error (0, errno, _("cannot read symbolic link %s"),
|
||||
|
||||
Reference in New Issue
Block a user