Comment 8 for bug 1842924

Revision history for this message
Peter Newman (peternewman) wrote :

Which I guess in their style would be (and I suspect this is probably what you tried):
/* This function checks whether current file system is an AutoFs
 * HRFS_entry must be valid prior to calling this function
 * return 1 if AutoFs, 0 otherwise
 */
int
Check_HR_FileSys_AutoFs(void)
{
#if HAVE_GETFSSTAT
    if (HRFS_entry->HRFS_type != NULL &&
#if defined(MNTTYPE_AUTOFS)
        !strcmp(HRFS_entry->HRFS_type, MNTTYPE_AUTOFS)
#else
        !strcmp(HRFS_entry->HRFS_type, "autofs")
#endif
        )
        return 1; /* AUTOFS */
#endif /* HAVE_GETFSSTAT */
    return 0; /* no AUTOFS */
}