summaryrefslogtreecommitdiffstats
path: root/usr.bin/at
Commit message (Collapse)AuthorAgeFilesLines
* MFC r272288,272289:delphij2014-10-021-2/+1
| | | | | | | | | | | When setting environment variables in the atrun script, use the "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) Approved by: re (gjb)
* - 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
* - Switch order of setting real uid and gid. If we set uid first, then wegahr2013-04-121-1/+1
| | | | | | | | don't have enough privileges to set gid. This looks like a long standing bug, just recently revealed by r241852. Approved by: cognet
* Check the return error of set[ug]id. While this can never fail in theeadler2012-10-221-10/+10
| | | | | | | | | | | | | | current version of FreeBSD, this isn't guarenteed by the API. Custom security modules, or future implementations of the setuid and setgid may fail. PR: bin/172289 PR: bin/172290 PR: bin/172291 Submittud by: Erik Cederstrand <erik@cederstrand.dk> Discussed by: freebsd-security Approved by: cperciva MFC after: 1 week
* More -Wmissing-variable-declarations fixes.ed2012-10-191-7/+5
| | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
* Allow time offsets to be negative, e.g. `at 1530 - 15 minutes`.cracauer2012-10-051-13/+49
| | | | | | | | This is useful if you have been given some time for some event in some format and you want your computer to do something to prepare for it. Without having to do time arithmetic in a shellscript. The syntax matches what the at(1) usually used on Linux supports.
* Partially revert r227233.ed2011-11-062-4/+11
| | | | | | | | 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-063-18/+9
| | | | | | 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.
* Build at(1) with NO_WFORMAT instead of WARNS=1.ed2011-10-161-1/+1
|
* Close file and directory descriptorskevlo2010-11-191-0/+3
| | | | MFC after: 3 days
* Remove stale references to utmp(5) and its corresponding filenames.ed2010-01-211-2/+2
| | | | I removed utmp and its manpage, but not other manpages referring to it.
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-0/+2
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* 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)
* While revision 1.26 fixed the code to really subtract 3600 due tostefanf2005-08-181-3/+1
| | | | | daylight-saving, this was actually wrong because mktime() already does that for us.
* Don't throw away the adjusted `runtimer' value.stefanf2005-08-051-3/+1
|
* Sort sections.ru2005-01-181-7/+7
|
* Explain the format of the at.allow and at.deny files in detail.keramida2003-03-261-0/+5
| | | | | PR: 35942 Submitted by: Gary W. Swearingen <swear@blarg.net>
* The .Nm utility.keramida2003-02-281-4/+9
|
* mdoc(7) police:ru2002-11-261-1/+3
| | | | | | | | Revert to using the .Tn POSIX and .Tn ANSI instead of \*[Px] and \*[Ai] strings; using these strings is unsafe in troff mode, as they include a change in a font size. Approved by: re
* mdoc(7) police: Removed redundant .Ns calls.ru2002-08-131-2/+2
|
* - Use MAXLOGNAME - 1 instead of UT_NAMESIZE.robert2002-07-221-11/+5
| | | | - Do not pretend there is something like '/etc/utmp'.
* mdoc(7) police: lint.ru2002-05-291-2/+3
|
* Add the SUSv3 -l option to at. This is an alias for atq. Allow job idstjr2002-05-163-6/+62
| | | | | | | 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
* Document the fact that at(1) is run through cron(8) and that this affectsasmodai2002-05-041-0/+14
| | | | | | the granularity of the at queue runs. Submitted by: mux
* mdoc(7) police: markup fixes.ru2002-03-151-13/+20
|
* #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.
* Remove leaf node WARNS?=2 (that mainly I added). This shouldmarkm2002-02-081-1/+0
| | | | help the GCC3 transition and CURRENT in general.
* o Remove the -V [version number] option, since our version of at(1) nomike2002-01-223-43/+26
| | | | | | | longer resembles the original. o Remove references to `you' in the manual. Submitted by: Joe Halpin <joe.halpin@attbi.com>
* Fix a typo introduced in the previous delta. The mistake was minemike2002-01-171-1/+1
| | | | rather than the submitter's.
* Implement the POSIX 1003.1-2001 -r and -t options in at(1). Fix somemike2002-01-134-26/+157
| | | | | | | | 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
* - Add 4-digit year variants in the manpage, since at(1) alreadykeramida2002-01-101-6/+7
| | | | | | | understands them. PR: docs/32843 Submitted by: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
* Style improvements recommended by Bruce as a follow up to somedwmalone2001-12-104-4/+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-024-16/+12
|
* WARNS=2 fixup.markm2001-12-027-18/+24
|
* Allow an ``at now'' specification.brian2001-11-241-1/+5
| | | | | | PR: 32242 Submitted by: Alan E <alane@geeksrus.net> MFC after: 3 weeks
* mdoc(7) police: kill whitespace at EOL and HSB.ru2001-11-201-6/+8
|
* Use .Nm to correctly display the program name.murray2001-11-191-1/+3
| | | | | | PR: docs/32086 Submitted by: setantae@submonkey.net MFC After: 2 days
* Set BINOWN=root explicitly for setuid root binaries.ru2001-09-131-0/+1
| | | | | | This is not "useless", as one may have non-default setting for BINOWN in make.conf, and we still want these to be installed setuid root in this case.
* SECURITY.ru2001-09-042-40/+42
| | | | | | | | | | | | | Fixed macros for temporarily relinquishing and restoring setuid/setgid privileges so that they never change the real user and group IDs of the calling process. The setre[ug]id() calls are still used in the REDUCE_PERM macro (with the r[ug]id arguments of -1) so that the call changes the saved user and group IDs of the process to that specified. Also, the panic() and perr() functions had insufficient privileges to delete the problematic file under /var/at.
* Remove some unsafe function calls from the signal handlers.kris2001-09-011-6/+14
| | | | | | Obtained from: OpenBSD Reviewed by: audit MFC after: 2 weeks
* An empty at.deny doesn't mean everyone can use at.dd2001-08-141-4/+0
| | | | | PR: 29549 Submitted by: swear@aa.net
* Expland `mymalloc' with malloc + error checking.obrien2001-07-244-17/+10
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* MAN[1-9] -> MAN.ru2001-03-271-4/+4
|
* Don't use MANDEPEND and MANSRC.ru2001-03-261-5/+2
|
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-4/+4
|
* Prepare for mdoc(7)NG.ru2000-12-191-3/+4
|
* mdoc(7) police: removed history info from the .Os FreeBSD call.ru2000-12-141-1/+1
|
OpenPOWER on IntegriCloud