platform/unix.c
changeset 678 73a2641375a0
parent 677 c8e2615d6173
child 691 71d9affe0d8a
equal deleted inserted replaced
677:c8e2615d6173 678:73a2641375a0
   217 {
   217 {
   218     FILE *mounts = NULL;
   218     FILE *mounts = NULL;
   219     struct mntent *ent = NULL;
   219     struct mntent *ent = NULL;
   220 
   220 
   221     mounts = setmntent("/etc/mtab", "r");
   221     mounts = setmntent("/etc/mtab", "r");
   222     if (mounts == NULL)
   222     BAIL_IF_MACRO(mounts == NULL, ERR_IO_ERROR, /*return void*/);
   223     {
       
   224         __PHYSFS_setError(ERR_IO_ERROR);
       
   225         return;
       
   226     } /* if */
       
   227 
   223 
   228     while ( (ent = getmntent(mounts)) != NULL )
   224     while ( (ent = getmntent(mounts)) != NULL )
   229     {
   225     {
   230         int add_it = 0;
   226         int add_it = 0;
   231         if (strcmp(ent->mnt_type, "iso9660") == 0)
   227         if (strcmp(ent->mnt_type, "iso9660") == 0)