summaryrefslogtreecommitdiff
path: root/usr.bin/at
AgeCommit message (Collapse)Author
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2015-11-16Make "at -l" comply with POSIX. Our "at -l" currently acts likeTodd C. Miller
the historic BSD atq which takes a list of users instead of a list of jobs. We now accept either a user or a job number for "at -l". The "at -l user" syntax is still accepted but no longer documented. This is similar to how we handle differences in "at -r" vs. atrm. OK deraadt@ jmc@
2015-11-13Use crontab-style syslog calls in at.Todd C. Miller
Remove check_permission and just call allowed() directly.
2015-11-13There's no need for at.c globals to be extern.Todd C. Miller
2015-11-12Use absolute paths in pathnames.h. There is no longer a need toTodd C. Miller
chdir(2) to the cron dir and cron(8) now changes to / via daemon(3). We no longer try to create/chmod the spool directories as they should be set correctly at install time. The setegid(crontab) has been moved to open_socket() so it is closer to the chmod(2) call that needs it. OK deraadt@ tedu@
2015-11-11at already uses O_EXCL when creating files so there's no need toTodd C. Miller
lock the spool dir. OK jca@
2015-11-11Use warn/warnx here too.Todd C. Miller
2015-11-11Remove bogus DST code. mktime() handles DST automatically whenTodd C. Miller
tm_isdst is set to -1.
2015-11-11Use warn/warnx where sensible and add fatal/fatalx wrappers forTodd C. Miller
err/errx that unlink atfile as needed. OK deraadt@
2015-11-11Use fstatat(), openat() and unlinkat() when operating on files inTodd C. Miller
the at queue so we don't need to chdir to the queue dir. OK guenther@
2015-11-09Rename AT_DIR -> AT_SPOOL and SPOOL_DIR -> CRON_SPOOL to improveTodd C. Miller
readability.
2015-11-06Use __progname instead of the homegrown ProgramName.Todd C. Miller
2015-11-04Change cron from including all headers in every file to only includingTodd C. Miller
what each .c file needs. I have not removed cron.h since it will be used in a future clean up of the cron's .h files. OK nicm@
2015-11-03It is only necessary to swap the effective gid when reading a file.Todd C. Miller
An attacker exploiting an overflow can change the egid themselves so running with the egid of the user in other places just gives you a false sense of security. OK nicm@ deraadt@
2015-10-31Split client-only (at, crontab) functions out of misc.c and intoTodd C. Miller
client.c. Move truly common functions into common.c. This avoids dead code in the at and crontab commands.
2015-10-28pledgeTheo de Raadt
ok millert
2015-09-09The .Nd macro is intended to provide "a one line description", so avoidIngo Schwarze
multiple lines of input, in particular, don't use macros below .Nd; such bad style can confuse various apropos(1) tools. All deleted macros reappear later in the text, anyway, except for .Tn, which i'm deleting outright. Found while scanning the tree for good and bad practices in preparation for my EuroBSD2015 mdoc(7) tutorial on Oct 1 in Stockholm.
2015-08-20Do not cast result of malloc/calloc/realloc* if stdlib.h is in scopeTheo de Raadt
ok krw millert
2015-03-17Eliminate use of TM_YEAR_BASE. OK guenther@ deraadt@ miod@Todd C. Miller
2015-03-15tzfile.h is an internal header that should never have been installed.Todd C. Miller
What's worse, the tzfile.h that gets installed is over 20 years old and doesn't match the real tzfile.h in libc/time. This makes the tree safe for /usr/include/tzfile.h removal. The TM_YEAR_BASE define has been moved to time.h temporarily until its usage is replaced by 1900 in the tree. Actual removal of tzfile.h is pending a ports build. Based on a diff from deraadt@
2015-01-23don't need to define debugging 0 anymoreTed Unangst
2014-10-08userland reallocarray audit.Doug Hogan
Replace malloc() and realloc() calls that may have integer overflow in the multiplication of the arguments with reallocarray(). ok deraadt@
2014-09-29When setting environment variables in the atrun script, use theTodd C. Miller
"export foo=bar" form instead of "foo=bar; export foo" since the former allows the shell to catch variable names that are not valid shell identifiers. This will cause /bin/sh to exit with an error (which gets mailed to the at user) and it will not run the script. OK miod@
2014-09-16no need to discuss sendmail (or any particular mailer) here;Jason McIntyre
while here, \*(Gt -> >, per ingo;
2014-03-17as suggested by schwarze, reshuffle STANDARDS text detailing posix featuresJason McIntyre
we don;t support next to the posix compat blurb, in order to make things a bit clearer; this also makes the text more concise; ok millert schwarze sobrado
2014-02-15macro cleanup, mostly to use .Cm for fixed stringsIngo Schwarze
to be passed as command line arguments; from Jan Stary <hans at stare dot cz>, tweaked by me
2014-01-30STANDARDS: at.allow/deny is xsi (same as cron);Jason McIntyre
2014-01-13Add the "next" keyword as an alias for "+ 1" for relative times.Todd C. Miller
Also support "months" and "years" keywords when specified as relative time units. All as per POSIX. Man page changes OK jmc@ sobrado@
2014-01-09flesh out some details in STANDARDS regarding timespec;Jason McIntyre
ok sobrado millert
2013-11-25variety of unsigned char casts (or conversions) for ctypeTheo de Raadt
ok krw
2013-07-16use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@Ingo Schwarze
2013-04-17Adapt cron and at for future large time_t and tv_sec types. These were someTheo de Raadt
of the harder programs to adapt, so let me know if problems happen. tested by guenther, gilles, chl, others
2011-09-04have the -t argument name in the options list match that of SYNOPSIS;Jason McIntyre
ok millert
2011-08-31have the timespec arguments match in case those of time_arg;Jason McIntyre
2011-08-31Copy description of the -t option and its argument with revised textPhilip Guenthe
from the touch(1) manpage after much discussion with jmc@ and miller@
2011-08-30Same fix as 'touch': with the -t option, when the year is specifiedPhilip Guenthe
but the century isn't, the century is 1900 if year >= 69; otherwise it's 2000. (With 32bit time_t, this does't affect any working usage.) ok millert@
2011-08-23Use standard EXIT_SUCCESS/EXIT_FAILURE and STD{IN,OUT,ERR}_FILENOTodd C. Miller
defines instead of using custom macros. Missed in last commit.
2011-03-20Add two missing lines that got missed when I did the initial at + cronTodd C. Miller
merge.
2011-03-03Use dirfd() instead of peeking into struct dirent for dd_fd, which isTodd C. Miller
non-standard.
2010-09-03add an EXIT STATUS section for /usr/bin;Jason McIntyre
2010-07-21document exit values; from daniel dickmanJason McIntyre
2010-07-02'wether' -> 'whether' typo in license text.Kenneth R Westerback
ok deraadt@
2009-12-07behaviour for the -l flag differs between this implementation and posix;Jason McIntyre
spotted by millert
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-10-05open the -f inputfile before letting lower-down functions call chdir()Theo de Raadt
and move us to where we cannot open it. problem spotted by austin ok millert
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2008-01-03missing word; from Jason FilleyJason McIntyre
2007-09-05Change some variables to their proper type size_t.Moritz Jodeit
ok millert@
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-06-18Fix typo introduced in seconds parsing. From Tim van der Molen.Todd C. Miller