Pass a FILE * instead of a file descriptor into load_user() and
authormillert <millert@openbsd.org>
Mon, 5 Feb 2018 03:52:37 +0000 (03:52 +0000)
committermillert <millert@openbsd.org>
Mon, 5 Feb 2018 03:52:37 +0000 (03:52 +0000)
commit48565214692a74792706e4f09508afe348eabfe3
treee3b426ec1834fc9ad4daf2da38a9df6858cb7a89
parentd6404d18806056a3c60a2de3a22f4dd33af6730e
Pass a FILE * instead of a file descriptor into load_user() and
perform the fclose() in process_crontab().  Previously we were
closing the crontab fd twice--once in load_user() via fclose() and
once in process_crontab().  OK tb@
usr.sbin/cron/database.c
usr.sbin/cron/funcs.h
usr.sbin/cron/user.c