/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

  • Committer: teddy at bsnet
  • Date: 2010-09-10 17:06:26 UTC
  • mto: This revision was merged to the branch mainline in revision 427.
  • Revision ID: teddy@fukt.bsnet.se-20100910170626-exo8e7ptkb9ncg29
* Makefile (install-server): Install dbus-mandos.conf as
                             "/etc/dbus-1/system.d/mandos.conf".
  (purge-server): Remove "/etc/dbus-1/system.d/mandos.conf".

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
 
                                   getenv() */
 
45
                                   EXIT_SUCCESS, malloc(), _exit() */
 
46
#include <stdlib.h>             /* 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
 
    }
614
610
/*     if(fork() != 0){ */
615
611
/*       _exit(EXIT_SUCCESS); */
616
612
/*     } */