From: Jim Meyering Date: Tue, 1 Jun 2004 13:37:01 +0000 (+0000) Subject: (main): Update use of xreadlink. X-Git-Tag: v5.3.0~1428 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be62d4e33d8c61b1867101e2434d177c562bb0d0;p=thirdparty%2Fcoreutils.git (main): Update use of xreadlink. --- diff --git a/src/readlink.c b/src/readlink.c index 9af6ae731f..8c9350a5e7 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"));