42
42
fork(), setuid(), geteuid(),
43
43
setsid(), chdir(), dup2(),
44
44
STDERR_FILENO, execv() */
45
#include <stdlib.h> /* free(), EXIT_FAILURE, realloc(),
45
#include <stdlib.h> /* free(), EXIT_FAILURE, strtoul(),
46
realloc(), EXIT_SUCCESS, malloc(),
47
48
#include <stdlib.h> /* getenv() */
48
49
#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;