Patch-ID# 100058-03
Keywords: cron at batch crontab duplicate twice
Synopsis:SunOS 4.1.1;4.1;4.0.3:Cron scheduling and queue errors; may run jobs twice
Date: 20-May-91

SunOS release: 4.0, 4.0.1, 4.0.3, 4.1, 4.1.1

Bug ID's fixed with this patch: 1019719 1023418 1012011 1017698 1014181 1012398
				1022379 1011113

Patches which conflict with this patch:

Architectures for which this patch is available: sun3, sun4

Obsoleted by: SunOS 5.0

Problem description:

This patch contains fixes for numerous bugs in cron(8), at(1), and batch(1)
which cause scheduling problems, among which is one that allows jobs to run twice.

	The bugs fixed are:

	1019719: print at(1) job number in syslog messages
	1023418: cron queue handling and scheduling is broken
	1012011: Initialize USER as well as LOGNAME environment variable
	1017698: cron sends erroneous error message when job can't be executed
	1014181: add pid and queue name to the CMD syslog message
	1012398: "cron"/"at"/"batch" runs more jobs than queue limit
	1022379: cron executes crontab entries twice  (duplicate of 1027075)
	1011113: invalid sys_errlist message number is >= sys_nerr,
		 not > sys_nerr

INSTALL:

 as root:
shutdown to single user mode.
 # mv /usr/etc/cron /usr/etc/cron.FCS
 # cp sun{3,4}/{4.0.3,4.1,4.1.1}/cron /usr/etc/cron
 # chown root /usr/etc/cron
 # chgrp staff /usr/etc/cron
 # chmod 755 /usr/etc/cron

bring the system back up to multi-user mode, or reboot.
