]> Savannah Git Hosting - gnulib.git/commit
canonicalize: fix EOVERFLOW bug
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 2 Dec 2020 22:25:41 +0000 (14:25 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 2 Dec 2020 22:39:29 +0000 (14:39 -0800)
commit47f74ead5c1cb72d489ea06a8a716eb0f65a430c
treee515b135d396b467bf2c3d9c93a71f5bb90804da
parent1e04bb6ea87ee69adb830e68b1d9cd1b39c918d3
canonicalize: fix EOVERFLOW bug

* lib/canonicalize.c (canonicalize_filename_mode):
When testing whether a directory entry is a symbolic link, or a
directory or other, do not use lstat or stat or
areadlink_with_size.  Just use areadlink, as this suffices and it
avoids the EOVERFLOW problem that lstat and stat have.
* modules/canonicalize (Depends-on): Depend on areadlink instead
of areadlink-with-size and stat.
ChangeLog
lib/canonicalize.c
modules/canonicalize