/* record max mtime of any file under dir_name in max_st */
static int
-check_open(const char *tabname, const char *fname, const char *uname,
+check_open(const char *tabname, const char *uname,
struct passwd *pw, time_t * mtime) {
struct stat statbuf;
int crontab_fd;
goto next_crontab;
}
- if ((crontab_fd = check_open(tabname, fname, uname, pw, &mtime)) == -1)
+ if ((crontab_fd = check_open(tabname, uname, pw, &mtime)) == -1)
goto next_crontab;
Debug(DLOAD, ("\t%s:", fname))
#include <cron.h>
-static int child_process(entry *, user *, char **);
+static int child_process(entry *, char **);
static int safe_p(const char *, const char *);
void do_command(entry * e, user * u) {
if (cron_set_job_security_context(e, u, &jobenv) != 0) {
_exit(ERROR_EXIT);
}
- ev = child_process(e, u, jobenv);
+ ev = child_process(e, jobenv);
cron_close_pam();
env_free(jobenv);
Debug(DPROC, ("[%ld] child process done, exiting\n", (long) getpid()))
Debug(DPROC, ("[%ld] main process returning to work\n", (long) pid))
}
-static int child_process(entry * e, user * u, char **jobenv) {
+static int child_process(entry * e, char **jobenv) {
int stdin_pipe[2], stdout_pipe[2];
char *input_data, *usernm, *mailto, *mailfrom;
int children = 0;