diff options
author | Jim Meyering <jim@meyering.net> | 1993-10-13 22:30:38 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1993-10-13 22:30:38 +0000 |
commit | 20905f2c93b659dc8908044132b8336439d8e8ee (patch) | |
tree | a63d116534b33608178d8a3874b09c258df0b731 /src/ls.c | |
parent | 7691d2fba0dcb802ab471f5c441c308452abf791 (diff) | |
download | coreutils-20905f2c93b659dc8908044132b8336439d8e8ee.tar.xz |
merge with 3.8.4e
Diffstat (limited to 'src/ls.c')
-rw-r--r-- | src/ls.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1094,7 +1094,7 @@ get_link_name (filename, f) linkbuf = (char *) alloca (PATH_MAX + 2); /* Some automounters give incorrect st_size for mount points. I can't think of a good workaround for it, though. */ - linksize = readlink (filename, linkbuf, sizeof (linkbuf) - 1); + linksize = readlink (filename, linkbuf, PATH_MAX + 1); if (linksize < 0) { error (0, errno, "%s", filename); |