Back to index

nordugrid-arc-nox  1.1.0~rc6
Functions
rjanitor.c File Reference
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 A perl script cannot gain root proviledges via the UNIX sticky bits, while this C code can.

Function Documentation

int main ( int  argc,
char **  argv 
)

A perl script cannot gain root proviledges via the UNIX sticky bits, while this C code can.

Definition at line 10 of file rjanitor.c.

{
       setuid(0);
       setgid(0);

       execv("/usr/local/share/arc/perl/Janitor/interfaces/commandline/janitor", argv);

       return 4;
}