Use FSTAB_SW and FSTAB_XX when available

This commit is contained in:
Pierre Pronchery 2018-04-22 03:40:10 +02:00
parent 8de00048fa
commit 6c292d976c

View File

@ -740,9 +740,14 @@ static int _list_loop_unmounted(Volumes * volumes)
_list_reset(volumes);
while((f = getfsent()) != NULL)
{
if(strcmp(f->fs_type, "sw") == 0
|| strcmp(f->fs_type, "xx") == 0)
# if defined(FSTAB_SW)
if(strcmp(f->fs_type, FSTAB_SW) == 0)
continue;
# endif
# if defined(FSTAB_XX)
if(strcmp(f->fs_type, FSTAB_XX) == 0)
continue;
# endif
flags = (strcmp(f->fs_vfstype, "nfs") == 0
|| strcmp(f->fs_vfstype, "smbfs") == 0)
? DF_NETWORK : 0;