summaryrefslogtreecommitdiff
path: root/src/readlink.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-06-01 13:37:01 +0000
committerJim Meyering <jim@meyering.net>2004-06-01 13:37:01 +0000
commitbe62d4e33d8c61b1867101e2434d177c562bb0d0 (patch)
tree3b4bab918e5cc40b2e8d18e72854ee24679d1353 /src/readlink.c
parent5c0097312366318092764ff69c3670a71e48ea0c (diff)
downloadcoreutils-be62d4e33d8c61b1867101e2434d177c562bb0d0.tar.xz
(main): Update use of xreadlink.
Diffstat (limited to 'src/readlink.c')
-rw-r--r--src/readlink.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/readlink.c b/src/readlink.c
index 9af6ae731..8c9350a5e 100644
--- a/src/readlink.c
+++ b/src/readlink.c
@@ -1,5 +1,5 @@
/* readlink -- display value of a symbolic link.
- Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -137,7 +137,9 @@ main (int argc, char *const argv[])
usage (EXIT_FAILURE);
}
- value = (canonicalize ? canonicalize_file_name : xreadlink) (fname);
+ value = (canonicalize
+ ? canonicalize_file_name (fname)
+ : xreadlink (fname, 1024));
if (value)
{
printf ("%s%s", value, (no_newline ? "" : "\n"));