| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
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
|
|
|
|
|
| |
PR: 191174
Submitted by: Franco Fichtner <franco at lastsummer.de>
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
don't have enough privileges to set gid.
This looks like a long standing bug, just recently revealed by r241852.
Approved by: cognet
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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'.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
I removed utmp and its manpage, but not other manpages referring to it.
|
|
|
|
| |
Also add some missing $FreeBSD$ to keep svn happy.
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
daylight-saving, this was actually wrong because mktime() already does that for
us.
|
| |
|
| |
|
|
|
|
|
| |
PR: 35942
Submitted by: Gary W. Swearingen <swear@blarg.net>
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
- 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
|
|
|
|
|
|
| |
the granularity of the at queue runs.
Submitted by: mux
|
| |
|
|
|
|
|
|
|
|
| |
<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.
|
|
|
|
| |
help the GCC3 transition and CURRENT in general.
|
|
|
|
|
|
|
| |
longer resembles the original.
o Remove references to `you' in the manual.
Submitted by: Joe Halpin <joe.halpin@attbi.com>
|
|
|
|
| |
rather than the submitter's.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
understands them.
PR: docs/32843
Submitted by: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
| |
PR: 32242
Submitted by: Alan E <alane@geeksrus.net>
MFC after: 3 weeks
|
| |
|
|
|
|
|
|
| |
PR: docs/32086
Submitted by: setantae@submonkey.net
MFC After: 2 days
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Obtained from: OpenBSD
Reviewed by: audit
MFC after: 2 weeks
|
|
|
|
|
| |
PR: 29549
Submitted by: swear@aa.net
|
| |
|
| |
|
| |
|
| |
|
| |
|