File: chkshsgr.c

package info (click to toggle)
socklog 2.1.0%2Brepack-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,128 kB
  • sloc: ansic: 3,422; sh: 362; makefile: 323
file content (14 lines) | stat: -rw-r--r-- 207 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Public domain. */

#include <sys/types.h>
#include <unistd.h>
#include <grp.h>

int main()
{
  gid_t x[2];

  x[0] = x[1] = 0;
  if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1);
  _exit(0);
}