errno_msg("Can't query file access rights");
return(1);
}
-#ifdef __sgi
+#if defined(__sgi) || defined(linux)
/*
* There are no access rights on the SGI. 1 means it's
* there.
size_t hlen,
dm_token_t token)
{
- dm_region_t *rgn;
+ dm_region_t *rgn, *sv_rgn;
u_int nregions, nret;
u_int exact_flag;
int i;
}
}
+ sv_rgn = rgn;
+
/*
* Clear all the managed regions
*/
rgn->rg_flags = DM_REGION_NOEVENT;
rgn++;
}
+ rgn = sv_rgn;
+
error = dm_set_region(sid, hanp, hlen, token, nregions, rgn,
&exact_flag);
if (error == -1) {