Logo Search packages:      
Sourcecode: maradns version File versions

setgroupstest.c

/* I am writing this program to determine how setgroups works */

/* Placed in the public domain 2001 by Sam Trenholme */

#include <unistd.h>

/* The Linux man page does not point out that the following defines
   gid_t */
#include <stropts.h>

main() {
      gid_t group;
      group = 0;
      setgroups(1,&group);
      execl("/bin/sh","sh",NULL);
      }

Generated by  Doxygen 1.6.0   Back to index