When running at jobs, open the at spool and use the directory fd
authormillert <millert@openbsd.org>
Wed, 7 Jun 2017 17:59:36 +0000 (17:59 +0000)
committermillert <millert@openbsd.org>
Wed, 7 Jun 2017 17:59:36 +0000 (17:59 +0000)
commitf64f78fdcec057c9198eb39401b383191138d63d
tree3b0cbb15d187efec269bdda9232350a334de0fdc
parente93ea447f1d091d6f77d101bd48b5249f7fe5a0b
When running at jobs, open the at spool and use the directory fd
with openat(), fstatat() and unlinkat().  This is similar to how
we run cron jobs and eliminates the need for run_job() to find the
basename of the at file.  OK deraadt@
usr.sbin/cron/atrun.c