]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(canonicalize_file_name): Update use of xreadlink.
authorJim Meyering <jim@meyering.net>
Tue, 1 Jun 2004 13:24:12 +0000 (13:24 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 1 Jun 2004 13:24:12 +0000 (13:24 +0000)
lib/canonicalize.c

index 643f75b145407fe692eeb94b5fa3ae34fc64a815..c1f5aacbb6ccdc89f253688d7f170497d915e2ed 100644 (file)
@@ -1,5 +1,5 @@
 /* Return the canonical absolute name of a given file.
-   Copyright (C) 1996-2001, 2002, 2003 Free Software Foundation, Inc.
+   Copyright (C) 1996-2001, 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
@@ -260,7 +260,7 @@ canonicalize_file_name (const char *name)
                }
 #  endif /* MAXSYMLINKS */
 
-             buf = xreadlink (rpath);
+             buf = xreadlink (rpath, st.st_size);
              if (!buf)
                goto error;