Back to index

courier  0.68.2
Functions
submitmkdir.c File Reference
#include "courier.h"
#include "localstatedir.h"
#include <stdlib.h>
#include <stdio.h>

Go to the source code of this file.

Functions

int main (int argc, char **argv)

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 20 of file submitmkdir.c.

{
       umask(007);
       if (chdir(courierdir()) == 0 && chdir(TMPDIR) == 0 && argc > 1)
       {
       const char *p=argv[1];

              for ( ; *p; p++)
                     if (*p < '0' || *p > '9')   exit(0);
              mkdir(argv[1], 0770);
       }
       exit(0);
}

Here is the call graph for this function: