File: privtest.c

package info (click to toggle)
mtools 3.8-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 1,116 kB
  • ctags: 1,306
  • sloc: ansic: 11,489; sh: 2,052; makefile: 223; sed: 8
file content (9 lines) | stat: -rw-r--r-- 184 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
#include <stdlib.h>
/* this program is used to test whether mtools drops its privileges correctly */

main(int argc, char **argv)
{
  setuid(strtoul(argv[1], 0,0));
  system("id");

}