|
Lines 108-114
main (int argc, char *argv[])
|
Link Here
|
|---|
|
int exitcode = EXIT_SUCCESS; | int exitcode = EXIT_SUCCESS; |
struct nt_node *node_nt; | struct nt_node *node_nt; |
struct nt_c c_nt; | struct nt_c c_nt; |
struct passwd *pwent; |
|
| |
srand ((long) time << (long) getpid ()); | srand ((long) time << (long) getpid ()); |
umask (006); /* rw-rw---- */ | umask (006); /* rw-rw---- */ |
|
Lines 123-136
main (int argc, char *argv[])
|
Link Here
|
|---|
|
| |
/* Cache my username and uid for trusted user security */ | /* Cache my username and uid for trusted user security */ |
| |
pwent = getpwuid(getuid()); |
if (!init_pwent_cache()) { |
if (pwent == NULL) { |
|
LOG(LOG_ERR, ERR_AGENT_RUNTIME_USER); | LOG(LOG_ERR, ERR_AGENT_RUNTIME_USER); |
exitcode = EXIT_FAILURE; | exitcode = EXIT_FAILURE; |
goto BAIL; | goto BAIL; |
} | } |
__pw_name = strdup(pwent->pw_name); |
|
__pw_uid = pwent->pw_uid; |
|
| |
/* Read dspam.conf into global config structure (ds_config_t) */ | /* Read dspam.conf into global config structure (ds_config_t) */ |
| |