crontab: move spool temp file creation to spool_mkstemp()
authormillert <millert@openbsd.org>
Fri, 5 May 2023 13:50:40 +0000 (13:50 +0000)
committermillert <millert@openbsd.org>
Fri, 5 May 2023 13:50:40 +0000 (13:50 +0000)
commit7a8b831eff176a928c8c673d79dd35e0c03e2610
tree3f7349370a425c4100399fb3f29cabb60c1c78c1
parent17b59ed4364c36b0e9305ef3628e3895a7f745da
crontab: move spool temp file creation to spool_mkstemp()
This fixes a bug introduced in rev 1.86 where if the second seteuid()
call failed, a temporary file would be left in the spool directory.
usr.sbin/cron/crontab.c