home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / CMDS / mtools_3.6.src.lzh / MTOOLS_3.6 / privtest.c < prev    next >
C/C++ Source or Header  |  1997-11-12  |  184b  |  10 lines

  1. #include <stdlib.h>
  2. /* this program is used to test whether mtools drops its privileges correctly */
  3.  
  4. main(int argc, char **argv)
  5. {
  6.   setuid(strtoul(argv[1], 0,0));
  7.   system("id");
  8.  
  9. }
  10.