/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to plugins.d/usplash.c

merge
new approve/deny functionallity in mandos-monitor

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
                                   setsid(), chdir(), dup2(),
43
43
                                   STDERR_FILENO, execv() */
44
44
#include <stdlib.h>             /* free(), EXIT_FAILURE, realloc(),
45
 
                                   EXIT_SUCCESS, malloc(), _exit() */
46
 
#include <stdlib.h>             /* getenv() */
 
45
                                   EXIT_SUCCESS, malloc(), _exit(),
 
46
                                   getenv() */
47
47
#include <dirent.h>             /* opendir(), readdir(), closedir() */
48
48
#include <inttypes.h>           /* intmax_t, strtoimax() */
49
49
#include <sys/stat.h>           /* struct stat, lstat(), S_ISLNK */
607
607
    
608
608
    setsid();
609
609
    ret = chdir("/");
 
610
    if(ret == -1){
 
611
      perror("chdir");
 
612
      _exit(EX_OSERR);
 
613
    }
610
614
/*     if(fork() != 0){ */
611
615
/*       _exit(EXIT_SUCCESS); */
612
616
/*     } */