History log of /freebsd-9.3-release/libexec/atrun/atrun.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 242990 13-Nov-2012 mjg

MFC r242372:
atrun(8): scale default load average limit with the number of CPUs

Previously atrun refused to run jobs if load average was not below fixed limit of 1.5.

PR: 173175
Approved by: trasz (mentor)


# 241226 05-Oct-2012 jilles

MFC r240974: atrun: Do not assume that MAXLOGNAME <= 100.

The reserved space for fmt was exactly sufficient for a two-digit value of
MAXLOGNAME - 1.

PR: bin/171815
Submitted by: Jeremy Huddleston Sequoia


# 225736 22-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


# 200982 25-Dec-2009 ed

Don't use UT_NAMESIZE here to determine the maximum username length.


# 170773 15-Jun-2007 yar

Add PAM support to atrun(8).


# 170769 15-Jun-2007 yar

Actually use new features of perr() and perrx().


# 170767 15-Jun-2007 yar

Make perr() variadic and add perrx() to use in cases where
errno is irrelevant. Some code duplication can be reduced
if perr() is variadic and perrx() is available.


# 170741 14-Jun-2007 yar

Use a single setusercontext(3) instead of a bunch of basic syscalls.
Besides aesthetic benefits, that makes at(1) jobs subject to such
login.conf(5) settings as resource limits.


# 170739 14-Jun-2007 yar

Spotted another copy of the loony error message.


# 170728 14-Jun-2007 yar

Fix an error message that was beside the point.


# 170726 14-Jun-2007 yar

Fix a typical off-by-one error that can result in an unterminated string:

strncpy(dst, src, sizeof(dst));

by substituting the safer strlcpy() for strncpy().

X-Security: none (the source string isn't user-supplied)


# 153893 30-Dec-2005 ceri

Don't be sexist - fix a typo.


# 131990 11-Jul-2004 stefanf

Fix a few cases that relied on 'implicit int' (constraint violation in C99).


# 90148 03-Feb-2002 imp

o Eliminate __P
o Use new-style function definitions
o remove some !__STDC__ code
o eliminate register


# 80201 23-Jul-2001 kris

by by -> by

Obtained from: OpenBSD
MFC After: 1 week


# 69199 26-Nov-2000 kris

Don't hard-code a buffer size


# 50476 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 38024 02-Aug-1998 bde

Fixed printf format errors.


# 31306 20-Nov-1997 charnier

Cosmetic in error strings. Sort Xrefs. Add usage (with syslog capability).


# 29231 08-Sep-1997 dima

Do setlogin() before changing uid/gid, since
`at/batch' requires this.

Obtained from: me && OpenBSD


# 24829 11-Apr-1997 davidn

Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
Fixes name size limitation (was hardcoded to 8).
Closes PR#3258


# 24349 28-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


# 22989 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 10401 28-Aug-1995 mpp

Check for expired passwords before allowing access to the system.


# 10154 21-Aug-1995 ache

Upgrade to 2.9


# 8870 30-May-1995 rgrimes

Remove trailing whitespace.


# 7777 12-Apr-1995 ache

Add some useful sendmail options


# 7768 12-Apr-1995 ache

Upgrade.
Close security holes reported.


# 939 04-Jan-1994 nate

Added the Linux atrun command as hacked by Chris Demetriou for NetBSD.