]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Linux: use statvfs for name_max if available
authorLuke Mewburn <Luke@Mewburn.net>
Sat, 10 Jun 2023 10:21:17 +0000 (11:21 +0100)
committerMartin Matuška <martin@matuska.de>
Thu, 13 Jul 2023 22:12:05 +0000 (00:12 +0200)
commitd955533a6fccac1c1b783e3b0bf8bde8600f1237
tree2245c8600e082e1a41aa821c5260facdf54e396b
parentf1ae9980f554677a8526a9ca226861c9afb4d56a
Linux: use statvfs for name_max if available

If using HAVE_STATVFS, set name_max from svfs.f_namelen
instead of sfs.f_namelen, to be consistent with the
rest of the function.

Noticed by code inspection.
libarchive/archive_read_disk_posix.c