mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(get_link_name): Update use of xreadlink.
This commit is contained in:
1 parent
50a5f71804
commit
b99bf39b10
1 file changed
+1
-1
@@ -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