Bug 17363

Summary: [patch] crontab(1) leaves files in /var/cron/tabs when interrupted
Product: Base System Reporter: adrian <adrian>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.4-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description adrian 2000-03-13 20:50:02 UTC
	crontab(1) does not clean up temp files when it catches a INT, TERM or
	HUP signal.  This causes files to slowly accumilate in /var/cron/tabs.

Fix: Apply this patch.  It's not great, but it gets the job done with
	a minimum of fuss.
How-To-Repeat: 
	# Run crontab reading frmo stdin and interrupt it with a signal.
	crontab -
	^C
	ls /var/cron/tabs
	tmp.81593
Comment 1 ota 2008-04-24 09:52:16 UTC
This bug still exists and the patch is still appricable.

Why don't we apply this to the CURRENT?

Hiro
Comment 2 Matteo Riondato freebsd_committer freebsd_triage 2008-09-09 20:03:18 UTC
Responsible Changed
From-To: freebsd-bugs->matteo

I'll see what can be done with this PR.
Comment 3 Matteo Riondato freebsd_committer freebsd_triage 2008-11-09 07:35:28 UTC
State Changed
From-To: open->patched

Committed to head. MFC planned in 3 days. Thanks
Comment 4 ota 2009-02-26 02:38:10 UTC
It looks this was patched but not yet MFCed.

http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/cron/crontab/crontab.c#rev1.28

It seems there are other changes that was planed MFC but not done yet.

Regards,
Hiro
Comment 5 Mark Linimon freebsd_committer freebsd_triage 2010-06-19 05:37:38 UTC
Responsible Changed
From-To: matteo->freebsd-bugs

Reset PR assigned to inactive committer. 

Hat:	gnats-admin
Comment 6 Eitan Adler freebsd_committer freebsd_triage 2012-11-02 22:17:59 UTC
State Changed
From-To: patched->closed

MFCed/fixed by now