Ticket #2906: crash on Solaris while trying to copy a file.
commit4db9168a9322a69a08de2922b8cdde13c1f4da54
authorAndrew Borodin <aborodin@vmail.ru>
Sun, 24 Jun 2012 06:39:01 +0000 (24 10:39 +0400)
committerAndrew Borodin <aborodin@vmail.ru>
Fri, 12 Oct 2012 07:52:52 +0000 (12 11:52 +0400)
tree22fed38873b3e6d08329df318f4f1e178aa76cf9
parent91f919531b9b4924b9aee05f551eb3e0ee7f55dd
Ticket #2906: crash on Solaris while trying to copy a file.

Sync with gnulib c25bdbae48977a527dff69150f59fb0746d31b51:
fs usage: check for GNU/Linux statvfs problem dynamically.

* src/filemanager/mountlist.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
Define STAT_STATFS2_BSIZE too, since in this case the code now
checks dynamically whether statvfs is reliable, falling back on
Linux-style statfs otherwise.
(statvfs_works): New function, for dynamically testing statvfs.
(get_fs_usage) [STAT_STATVFS]: Use it.
* src/filemanager/filegui.c (filegui__check_attrs_on_fs): apply the same
statvfs_works function.
* m4.include/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
statvfs on GNU/Linux hosts, since it's now done dynamically.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
m4.include/fsusage.m4
src/filemanager/filegui.c
src/filemanager/mountlist.c