--- projects/libstatgrab/src/statgrab/statgrab.c 2003/10/19 01:25:55 1.11 +++ projects/libstatgrab/src/statgrab/statgrab.c 2003/10/20 22:18:21 1.12 @@ -603,6 +603,14 @@ int main(int argc, char **argv) { select_interesting(argc - optind, &argv[optind]); + /* We don't care if statgrab_init fails, because we can just display + the statistics that can be read as non-root. */ + statgrab_init(); +#ifdef ALLBSD + if (setegid(getgid()) != 0) + die("Failed to lose effective group"); +#endif + switch (repeat_mode) { case REPEAT_NONE: get_stats();