--- projects/libstatgrab/examples/os_info.c 2003/11/23 13:51:10 1.3 +++ projects/libstatgrab/examples/os_info.c 2004/01/06 15:35:04 1.4 @@ -30,6 +30,12 @@ int main(int argc, char **argv){ /* Initialise statgrab */ statgrab_init(); + /* Drop setuid/setgid privileges. */ + if (statgrab_drop_privileges() != 0) { + perror("Error. Failed to drop privileges"); + return 1; + } + general_stats = get_general_stats(); if(general_stats == NULL){