287549 |
08-Sep-2015 |
delphij |
MFC r287123:
Finish r89633 and completely remove the remaining of VERSION.
PR: bin/202308 Submitted by: John Hein <z7dr6ut7gs snkmail com> |
272438 |
02-Oct-2014 |
delphij |
MFC r272288,272289:
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) |
256281 |
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
249406 |
12-Apr-2013 |
gahr |
- Do not bail out if stat(2) fails with ENOENT in the spool directory. This 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
|
249404 |
12-Apr-2013 |
gahr |
- Switch order of setting real uid and gid. If we set uid first, then we don't have enough privileges to set gid.
This looks like a long standing bug, just recently revealed by r241852.
Approved by: cognet
|
241852 |
22-Oct-2012 |
eadler |
Check the return error of set[ug]id. While this can never fail in the 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
|
241737 |
19-Oct-2012 |
ed |
More -Wmissing-variable-declarations fixes.
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'.
|
241230 |
05-Oct-2012 |
cracauer |
Allow time offsets to be negative, e.g. `at 1530 - 15 minutes`.
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.
|
227269 |
06-Nov-2011 |
ed |
Partially revert r227233.
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
|
227233 |
06-Nov-2011 |
ed |
Add missing static keywords to at(1).
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.
|
226420 |
16-Oct-2011 |
ed |
Build at(1) with NO_WFORMAT instead of WARNS=1.
|
215518 |
19-Nov-2010 |
kevlo |
Close file and directory descriptors
MFC after: 3 days
|
202756 |
21-Jan-2010 |
ed |
Remove stale references to utmp(5) and its corresponding filenames.
I removed utmp and its manpage, but not other manpages referring to it.
|
201386 |
02-Jan-2010 |
ed |
Build usr.bin/ with WARNS=6 by default.
Also add some missing $FreeBSD$ to keep svn happy.
|
201382 |
02-Jan-2010 |
ed |
ANSIfy various tools in usr.bin/.
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.
|
172261 |
21-Sep-2007 |
kevlo |
Use NULL instead of 0 for the return value of fopen().
Approved by: re (kensmith)
|
149215 |
18-Aug-2005 |
stefanf |
While revision 1.26 fixed the code to really subtract 3600 due to daylight-saving, this was actually wrong because mktime() already does that for us.
|
148720 |
05-Aug-2005 |
stefanf |
Don't throw away the adjusted `runtimer' value.
|
140420 |
18-Jan-2005 |
ru |
Sort sections.
|
112661 |
26-Mar-2003 |
keramida |
Explain the format of the at.allow and at.deny files in detail.
PR: 35942 Submitted by: Gary W. Swearingen <swear@blarg.net>
|
111683 |
28-Feb-2003 |
keramida |
The .Nm utility.
|
107282 |
26-Nov-2002 |
ru |
mdoc(7) police:
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
|
101828 |
13-Aug-2002 |
ru |
mdoc(7) police: Removed redundant .Ns calls.
|
100494 |
22-Jul-2002 |
robert |
- Use MAXLOGNAME - 1 instead of UT_NAMESIZE. - Do not pretend there is something like '/etc/utmp'.
|
97493 |
29-May-2002 |
ru |
mdoc(7) police: lint.
|
96701 |
16-May-2002 |
tjr |
Add the SUSv3 -l option to at. This is an alias for atq. Allow job ids to be specified on the command line for which information should be reported.
Submitted by: Joe Halpin <joe.halpin@attbi.com> Reviewed by: mike
|
96216 |
08-May-2002 |
kuriyama |
Change whtespace indent in format string to fit new output form of timestamp.
Reviewed by: markm
|
96032 |
04-May-2002 |
asmodai |
Document the fact that at(1) is run through cron(8) and that this affects the granularity of the at queue runs.
Submitted by: mux
|
92340 |
15-Mar-2002 |
ru |
mdoc(7) police: markup fixes.
|
91220 |
25-Feb-2002 |
bde |
#include <sys/time.h> instead of depending on namespace pollution in <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.
|
90415 |
08-Feb-2002 |
markm |
Remove leaf node WARNS?=2 (that mainly I added). This should help the GCC3 transition and CURRENT in general.
|
89633 |
22-Jan-2002 |
mike |
o Remove the -V [version number] option, since our version of at(1) no longer resembles the original. o Remove references to `you' in the manual.
Submitted by: Joe Halpin <joe.halpin@attbi.com>
|
89448 |
17-Jan-2002 |
mike |
Fix a typo introduced in the previous delta. The mistake was mine rather than the submitter's.
|
89315 |
13-Jan-2002 |
mike |
Implement the POSIX 1003.1-2001 -r and -t options in at(1). Fix some 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
|
89186 |
10-Jan-2002 |
keramida |
- Add 4-digit year variants in the manpage, since at(1) already understands them.
PR: docs/32843 Submitted by: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
|
87628 |
10-Dec-2001 |
dwmalone |
Style improvements recommended by Bruce as a follow up to some 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.
|
87230 |
02-Dec-2001 |
markm |
Use __FBSDID()
|
87208 |
02-Dec-2001 |
markm |
WARNS=2 fixup.
|
86848 |
24-Nov-2001 |
brian |
Allow an ``at now'' specification.
PR: 32242 Submitted by: Alan E <alane@geeksrus.net> MFC after: 3 weeks
|
86673 |
20-Nov-2001 |
ru |
mdoc(7) police: kill whitespace at EOL and HSB.
|
86594 |
19-Nov-2001 |
murray |
Use .Nm to correctly display the program name.
PR: docs/32086 Submitted by: setantae@submonkey.net MFC After: 2 days
|
83391 |
13-Sep-2001 |
ru |
Set BINOWN=root explicitly for setuid root binaries.
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.
|
82973 |
04-Sep-2001 |
ru |
SECURITY.
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.
|
82722 |
01-Sep-2001 |
kris |
Remove some unsafe function calls from the signal handlers.
Obtained from: OpenBSD Reviewed by: audit MFC after: 2 weeks
|
81619 |
14-Aug-2001 |
dd |
An empty at.deny doesn't mean everyone can use at.
PR: 29549 Submitted by: swear@aa.net
|
80294 |
24-Jul-2001 |
obrien |
Expland `mymalloc' with malloc + error checking.
|
79535 |
10-Jul-2001 |
ru |
mdoc(7) police: removed HISTORY info from the .Os call.
|
74848 |
27-Mar-2001 |
ru |
MAN[1-9] -> MAN.
|
74804 |
26-Mar-2001 |
ru |
Don't use MANDEPEND and MANSRC.
|
71895 |
01-Feb-2001 |
ru |
mdoc(7) police: split punctuation characters + misc fixes.
|
70197 |
19-Dec-2000 |
ru |
Prepare for mdoc(7)NG.
|
70015 |
14-Dec-2000 |
ru |
mdoc(7) police: removed history info from the .Os FreeBSD call.
|
58660 |
27-Mar-2000 |
sheldonh |
Y2K fix. at(1) would die with 'garbled time' when assign_date() was pased a year > 99. This change fixes the conversion of 2-digit years into tm_year format.
This change is differs from the OpenBSD fix because of differences in our assign_date().
PR: 15872 Reported by: "Crist J. Clark" <cjclark@home.com> Submitted by: "Sergey N. Voronkov" <serg@dor.zaural.ru> Obtained from: OpenBSD
|
58607 |
26-Mar-2000 |
charnier |
Typo
|
58504 |
24-Mar-2000 |
mpp |
Change the usage of the .Nm macro in the NAME section to be consistent with the rest of the system.
|
54158 |
05-Dec-1999 |
charnier |
Correct use of .Nm, .Em, .Ev Add rcsid. Use errx instead of fprintf + exit. Various spelling fixes.
|
50477 |
28-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
50411 |
26-Aug-1999 |
nsayer |
1. Add support for months and years in relative time spec (now + 1 year)
2. Rip out dateadd() and re-do the plus operator handler to use mktime() instead (per wollman).
Reviewed by: wollman
|
49823 |
15-Aug-1999 |
mpp |
Various man page cleanup:
- Sort xrefs - Be consistent with section names as outlines in mdoc(7). - Other misc mdoc cleanup.
PR: doc/13144 Submitted by: Alexey M. Zelkin <phantom@cris.net>
|
48386 |
01-Jul-1999 |
billf |
(1) Don't perror() when at.deny doesn't exist, that's an accepted behavior.
(2) Die when there is a problem opening at.allow other then it not existing. An error other then it not existing might be a trick to somehow circumvent system security.
Mostly Reviewed By: msmith
|
46081 |
25-Apr-1999 |
imp |
More egcs warning fixes: 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
|
44060 |
15-Feb-1999 |
fenner |
Clean up some .Os macro uses: quotes are not needed, multiple arguments don't really work if the first one isn't "FreeBSD", and "FreeBSD-Experimental" isn't an OS name.
|
41556 |
06-Dec-1998 |
archie |
Eliminate compiler warnings from -Wall
|
40389 |
15-Oct-1998 |
mckay |
atq ignored locale info when printing dates. Is the other call to setlocale() just in the wrong place?
PR: 8300
|
39495 |
19-Sep-1998 |
obrien |
Remove useless `BINOWN=root' now that it is the default.
|
38646 |
30-Aug-1998 |
steve |
Typo fix: garbeld -> garbled
PR: 7784 Submitted by: Kris Kennaway <kkennawa@physics.adelaide.edu.au>
|
38188 |
08-Aug-1998 |
alex |
Year is sometimes set to -1 when assign_date() is called. Check for -1 before Y2K processing.
PR: 7524
|
37538 |
09-Jul-1998 |
des |
Recognize long month names in addition to short ones.
PR: bin/7228 Submitted by: Archie Cobbs <archie@whistle.com>
|
36786 |
09-Jun-1998 |
imp |
$@ is deprecated, use ${.TARGET} instead. Ditto for other single character $n. PR: conf/3273
|
36649 |
04-Jun-1998 |
steve |
Fix a bunch of spelling errors.
PR: 6856 Submitted by: Josh Gilliam <josh@quick.net>
|
35729 |
05-May-1998 |
alex |
Permit double digit year values to be used in the next millenium.
|
34801 |
23-Mar-1998 |
charnier |
.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.
|
26872 |
24-Jun-1997 |
charnier |
Revert part of previous commit. I didn't see rcsid string in the middle of the file. Put includes in alphabetical order.
|
26835 |
23-Jun-1997 |
charnier |
Use err(3). Simplification: if(a == 12) a -= 12 -> if(a == 12) a = 0.
|
24360 |
29-Mar-1997 |
imp |
compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic.
|
23318 |
03-Mar-1997 |
ache |
Back out MAXLOGNAME fix, Bruce points that copyinstr require NUL
|
23300 |
02-Mar-1997 |
ache |
Fix MAXLOGNAME usage, the code has wrong assumption that it must be NULL terminated
|
23012 |
22-Feb-1997 |
peter |
Revert $FreeBSD$ to $Id$
|
22873 |
18-Feb-1997 |
davidn |
Fix for hard-coded length of login name.
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
Closes #PR bin/2755
|
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.
|
17221 |
19-Jul-1996 |
jdp |
Fix botches in the handling of "AM" and "PM": 12:xx PM is 12:xx, not 24:xx. 12:xx AM is 00:xx, not 12:xx.
|
14250 |
25-Feb-1996 |
bde |
Use ${ECHO} instead of `echo' so that `make -s' is fairly quiet.
|
13950 |
06-Feb-1996 |
wosch |
making <page>.1 from <page>.man
|
13122 |
30-Dec-1995 |
peter |
recording cvs-1.6 file death
|
11760 |
24-Oct-1995 |
ache |
Add setlocale LC_TIME
|
11200 |
05-Oct-1995 |
joerg |
Describe the correct default situation for the various permission options.
Submitted by: sgk@troutmask.apl.washington.edu (Steven G. Kargl)
|
10154 |
21-Aug-1995 |
ache |
Upgrade to 2.9
|
9296 |
24-Jun-1995 |
joerg |
Make parsetime.c more consistent by using the (already declared) enum type instead of int all over the place. (Cosmetic, enhances debugging.)
Point out that a date specification _must_ follow the time of day spec, in the man page. This clarifies the last point PR # of bin/483: "at doesn't seem to ..." (the remainder has already been fixed with version 1.3 of parsetime.c).
|
8874 |
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
8112 |
27-Apr-1995 |
ache |
Remove setre* hacks, we have working thing now
|
7860 |
15-Apr-1995 |
ache |
Fight over non-working setruid
|
7767 |
12-Apr-1995 |
ache |
Upgrade.
|
6079 |
31-Jan-1995 |
bde |
Fix off by one error in calculation of `mday' (months start at 1). Jan 31 gave Jan 30, often for next year.
|
942 |
05-Jan-1994 |
nate |
Changed reference from NetBSD to FreeBSD
|
941 |
05-Jan-1994 |
nate |
Added at/atrm/atq/batch from Linux as hacked by Chris Demetriou.
|