42
42
                                   fork(), setuid(), geteuid(),
 
43
43
                                   setsid(), chdir(), dup2(),
 
44
44
                                   STDERR_FILENO, execv() */
 
45
 
#include <stdlib.h>             /* free(), EXIT_FAILURE, strtoul(),
 
46
 
                                   realloc(), EXIT_SUCCESS, malloc(),
 
 
45
#include <stdlib.h>             /* free(), EXIT_FAILURE, realloc(),
 
48
47
#include <stdlib.h>             /* getenv() */
 
49
48
#include <dirent.h>             /* opendir(), readdir(), closedir() */
 
50
50
#include <sys/stat.h>           /* struct stat, lstat(), S_ISLNK */
 
52
52
sig_atomic_t interrupted_by_signal = 0;