| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Reported by: Coverity
CID: 1007335
MFC after: 3 days
|
|
|
|
|
|
| |
Submitted by: mjg
MFC after: 3 days
X-MFC-with: 272288
|
|
|
|
|
|
|
|
|
|
| |
"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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
|
| |
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.
|
|
|
|
| |
Approved by: re (kensmith)
|
|
|
|
| |
- Do not pretend there is something like '/etc/utmp'.
|
|
|
|
|
|
|
| |
to be specified on the command line for which information should be reported.
Submitted by: Joe Halpin <joe.halpin@attbi.com>
Reviewed by: mike
|
|
|
|
|
|
| |
timestamp.
Reviewed by: markm
|
|
|
|
|
|
|
|
| |
<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.
|
|
|
|
|
|
|
| |
longer resembles the original.
o Remove references to `you' in the manual.
Submitted by: Joe Halpin <joe.halpin@attbi.com>
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
| |
Obtained from: OpenBSD
Reviewed by: audit
MFC after: 2 weeks
|
| |
|
|
|
|
|
| |
Add rcsid. Use errx instead of fprintf + exit.
Various spelling 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
|
| |
|
|
|
|
|
|
| |
setlocale() just in the wrong place?
PR: 8300
|
|
|
|
| |
posix standard on the topic.
|
| |
|
|
|
|
| |
NULL terminated
|
| |
|
|
|
|
|
|
| |
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
Closes #PR bin/2755
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|