summaryrefslogtreecommitdiffstats
path: root/usr.bin/at/at.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo: actually test the return of strchr(3)bapt2016-04-201-1/+1
| | | | | | Reported by: Coverity CID: 1007335 MFC after: 3 days
* Sigh, remove a line that needs to be removed along with previous commit.delphij2014-09-291-1/+0
| | | | | | Submitted by: mjg MFC after: 3 days X-MFC-with: 272288
* When setting environment variables in the atrun script, use thedelphij2014-09-291-1/+1
| | | | | | | | | | "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. Obtained from: OpenBSD (r1.63 millert) MFC after: 3 days
* - Do not bail out if stat(2) fails with ENOENT in the spool directory. Thisgahr2013-04-121-2/+26
| | | | | | | | | happens if another atrm process removes a job while we're scanning through the directory. - While at it, optimize a bit the directory scanning, so that we quit looping as soon as all jobs specified in argv have been dealt with. Approved by: cognet
* Partially revert r227233.ed2011-11-061-2/+2
| | | | | | | | The privs.h header is not only used by at(1), it's also used by atrun(8). Just let the code the way it used to be (for now). Reported by: kwm, tinderbox Hat to: me
* Add missing static keywords to at(1).ed2011-11-061-8/+6
| | | | | | While there, tidy up the privs.h part, where at.c has to #define to declare some globals. Also group static and non-static global variables in at.c.
* Close file and directory descriptorskevlo2010-11-191-0/+3
| | | | MFC after: 3 days
* ANSIfy various tools in usr.bin/.ed2010-01-021-1/+1
| | | | | Most of these tools properly build at WARNS=6, except for their K&R function declarations. Fix this, so we can bump WARNS as well.
* Use NULL instead of 0 for the return value of fopen().kevlo2007-09-211-2/+2
| | | | Approved by: re (kensmith)
* - Use MAXLOGNAME - 1 instead of UT_NAMESIZE.robert2002-07-221-11/+5
| | | | - Do not pretend there is something like '/etc/utmp'.
* Add the SUSv3 -l option to at. This is an alias for atq. Allow job idstjr2002-05-161-4/+53
| | | | | | | to be specified on the command line for which information should be reported. Submitted by: Joe Halpin <joe.halpin@attbi.com> Reviewed by: mike
* Change whtespace indent in format string to fit new output form ofkuriyama2002-05-081-2/+2
| | | | | | timestamp. Reviewed by: markm
* #include <sys/time.h> instead of depending on namespace pollution inbde2002-02-251-7/+8
| | | | | | | | <sys/stat.h> for the declaration of struct timeval (sys/stat.h> only needs timespecs even when its POSIX support is not turned on, so it shouldn't declare timevals). Fixed some #include messes.
* o Remove the -V [version number] option, since our version of at(1) nomike2002-01-221-15/+7
| | | | | | | longer resembles the original. o Remove references to `you' in the manual. Submitted by: Joe Halpin <joe.halpin@attbi.com>
* Implement the POSIX 1003.1-2001 -r and -t options in at(1). Fix somemike2002-01-131-5/+92
| | | | | | | | minor issues in the rest of the source and manual. Submitted by: Joe Halpin <joe.halpin@attbi.com> Obtained from: touch(1) (partially) MFC after: 1 month
* Style improvements recommended by Bruce as a follow up to somedwmalone2001-12-101-1/+0
| | | | | | | | of the recent WARNS commits. The idea is: 1) FreeBSD id tags should follow vendor tags. 2) Vendor tags should not be compiled (though copyrights probably should). 3) There should be no blank line between including cdefs and __FBSDIF.
* Use __FBSDID()markm2001-12-021-4/+3
|
* WARNS=2 fixup.markm2001-12-021-7/+7
|
* Remove some unsafe function calls from the signal handlers.kris2001-09-011-6/+14
| | | | | | Obtained from: OpenBSD Reviewed by: audit MFC after: 2 weeks
* Expland `mymalloc' with malloc + error checking.obrien2001-07-241-13/+4
|
* Correct use of .Nm, .Em, .Evcharnier1999-12-051-43/+35
| | | | | Add rcsid. Use errx instead of fprintf + exit. Various spelling fixes.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* More egcs warning fixes:imp1999-04-251-2/+2
| | | | | | | | | | o main returns int not void o use return 0 at end of main when needed o use braces to avoid potentially ambiguous else o don't default to type int o #ifdef 0 -> #if 0 Reviewed by: obrien and chuckr
* Eliminate compiler warnings from -Wallarchie1998-12-061-1/+1
|
* atq ignored locale info when printing dates. Is the other call tomckay1998-10-151-1/+5
| | | | | | setlocale() just in the wrong place? PR: 8300
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-2/+2
| | | | posix standard on the topic.
* Back out MAXLOGNAME fix, Bruce points that copyinstr require NULache1997-03-031-2/+2
|
* Fix MAXLOGNAME usage, the code has wrong assumption that it must beache1997-03-021-3/+3
| | | | NULL terminated
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Fix for hard-coded length of login name.davidn1997-02-181-3/+11
| | | | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org> Closes #PR bin/2755
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | 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.
* Add setlocale LC_TIMEache1995-10-241-1/+7
|
* Upgrade to 2.9ache1995-08-211-66/+164
|
* Remove trailing whitespace.rgrimes1995-05-301-28/+28
|
* Remove setre* hacks, we have working thing nowache1995-04-271-1/+7
|
* Fight over non-working setruidache1995-04-151-9/+5
|
* Upgrade.ache1995-04-121-430/+527
|
* Added at/atrm/atq/batch from Linux as hacked by Chris Demetriou.nate1994-01-051-0/+562
OpenPOWER on IntegriCloud