Mike Barcroft
d81986de07
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
2002-01-13 20:21:08 +00:00
Giorgos Keramidas
1309232c90
- 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>
2002-01-10 08:21:31 +00:00
David Malone
9f5b04e925
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.
2001-12-10 21:13:08 +00:00
Mark Murray
51e2220c27
Use __FBSDID()
2001-12-02 20:23:02 +00:00
Mark Murray
3ce6c35745
WARNS=2 fixup.
2001-12-02 12:26:18 +00:00
Brian Somers
bafdc304b0
Allow an ``at now'' specification.
...
PR: 32242
Submitted by: Alan E <alane@geeksrus.net>
MFC after: 3 weeks
2001-11-24 10:43:53 +00:00
Ruslan Ermilov
ec2eb6a2ff
mdoc(7) police: kill whitespace at EOL and HSB.
2001-11-20 15:43:25 +00:00
Murray Stokely
f6db21a6eb
Use .Nm to correctly display the program name.
...
PR: docs/32086
Submitted by: setantae@submonkey.net
MFC After: 2 days
2001-11-19 08:12:17 +00:00
Ruslan Ermilov
cda2a9b2f0
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.
2001-09-13 06:48:18 +00:00
Ruslan Ermilov
9dd887f1a6
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.
2001-09-04 16:15:51 +00:00
Kris Kennaway
ffacb1a399
Remove some unsafe function calls from the signal handlers.
...
Obtained from: OpenBSD
Reviewed by: audit
MFC after: 2 weeks
2001-09-01 07:35:25 +00:00
Dima Dorfman
dd6ba956da
An empty at.deny doesn't mean everyone can use at.
...
PR: 29549
Submitted by: swear@aa.net
2001-08-14 06:41:20 +00:00
David E. O'Brien
a9be9be874
Expland `mymalloc' with malloc + error checking.
2001-07-24 14:15:51 +00:00
Ruslan Ermilov
625003720a
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 14:16:33 +00:00
Ruslan Ermilov
dc12be5258
MAN[1-9] -> MAN.
2001-03-27 10:52:19 +00:00
Ruslan Ermilov
0414fc4dd0
Don't use MANDEPEND and MANSRC.
2001-03-26 07:28:26 +00:00
Ruslan Ermilov
d0353b836e
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:38:02 +00:00
Ruslan Ermilov
9b88faecd3
Prepare for mdoc(7)NG.
2000-12-19 16:00:12 +00:00
Ruslan Ermilov
ed40311694
mdoc(7) police: removed history info from the .Os FreeBSD call.
2000-12-14 11:52:05 +00:00
Sheldon Hearn
f4510294cb
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
2000-03-27 09:32:23 +00:00
Philippe Charnier
66f8a9c045
Typo
2000-03-26 14:29:45 +00:00
Mike Pritchard
b541ae06bd
Change the usage of the .Nm macro in the NAME section to be
...
consistent with the rest of the system.
2000-03-24 00:30:30 +00:00
Philippe Charnier
81c8c7a454
Correct use of .Nm, .Em, .Ev
...
Add rcsid. Use errx instead of fprintf + exit.
Various spelling fixes.
1999-12-05 19:57:14 +00:00
Peter Wemm
c3aac50f28
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
Nick Sayer
b6c989ff40
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
1999-08-26 16:18:38 +00:00
Mike Pritchard
a4cab7d390
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>
1999-08-15 08:25:34 +00:00
Bill Fumerola
4d294cadd5
(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
1999-07-01 01:07:30 +00:00
Warner Losh
96846ff646
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
1999-04-25 22:37:58 +00:00
Bill Fenner
13ca3c01ec
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.
1999-02-15 08:34:14 +00:00
Archie Cobbs
5f618f92e3
Eliminate compiler warnings from -Wall
1998-12-06 07:42:09 +00:00
Stephen McKay
f4a747a11b
atq ignored locale info when printing dates. Is the other call to
...
setlocale() just in the wrong place?
PR: 8300
1998-10-15 13:30:48 +00:00
David E. O'Brien
be0cde6f10
Remove useless `BINOWN=root' now that it is the default.
1998-09-19 22:42:06 +00:00
Steve Price
3297b869e3
Typo fix: garbeld -> garbled
...
PR: 7784
Submitted by: Kris Kennaway <kkennawa@physics.adelaide.edu.au>
1998-08-30 17:33:05 +00:00
Alexander Langer
1f939e3414
Year is sometimes set to -1 when assign_date() is called. Check for -1
...
before Y2K processing.
PR: 7524
1998-08-08 14:02:06 +00:00
Dag-Erling Smørgrav
b9dd99f2f5
Recognize long month names in addition to short ones.
...
PR: bin/7228
Submitted by: Archie Cobbs <archie@whistle.com>
1998-07-09 22:51:59 +00:00
Warner Losh
205a8ea824
$@ is deprecated, use ${.TARGET} instead. Ditto for other single character
...
$n.
PR: conf/3273
1998-06-09 04:07:23 +00:00
Steve Price
32c2131395
Fix a bunch of spelling errors.
...
PR: 6856
Submitted by: Josh Gilliam <josh@quick.net>
1998-06-04 21:06:07 +00:00
Alexander Langer
1dbfc421b6
Permit double digit year values to be used in the next millenium.
1998-05-05 01:53:15 +00:00
Philippe Charnier
306005e78c
.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.
1998-03-23 07:48:45 +00:00
Philippe Charnier
e5e5da15e2
Revert part of previous commit. I didn't see rcsid string in the middle of
...
the file. Put includes in alphabetical order.
1997-06-24 06:26:32 +00:00
Philippe Charnier
12d20ef97d
Use err(3).
...
Simplification: if(a == 12) a -= 12 -> if(a == 12) a = 0.
1997-06-23 06:44:18 +00:00
Warner Losh
1c8af87873
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-29 04:34:07 +00:00
Andrey A. Chernov
08a77c42e1
Back out MAXLOGNAME fix, Bruce points that copyinstr require NUL
1997-03-03 07:59:54 +00:00
Andrey A. Chernov
6fa0fa0ec9
Fix MAXLOGNAME usage, the code has wrong assumption that it must be
...
NULL terminated
1997-03-02 21:40:17 +00:00
Peter Wemm
c115df18cd
Revert $FreeBSD$ to $Id$
1997-02-22 19:58:13 +00:00
David Nugent
a88368cfdf
Fix for hard-coded length of login name.
...
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
Closes #PR bin/2755
1997-02-18 05:47:07 +00:00
Jordan K. Hubbard
1130b656e5
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.
1997-01-14 07:20:47 +00:00
John Polstra
9b2ea11c98
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.
1996-07-19 00:44:55 +00:00
Bruce Evans
463c7e7ac6
Use ${ECHO} instead of echo' so that
make -s' is fairly quiet.
1996-02-25 20:25:05 +00:00
Wolfram Schneider
cc54f38c51
making <page>.1 from <page>.man
1996-02-06 23:48:03 +00:00
Peter Wemm
a5b996a7ec
recording cvs-1.6 file death
1995-12-30 19:02:48 +00:00
Andrey A. Chernov
238d3ffda9
Add setlocale LC_TIME
1995-10-24 05:09:54 +00:00
Joerg Wunsch
587582a6d5
Describe the correct default situation for the various permission
...
options.
Submitted by: sgk@troutmask.apl.washington.edu (Steven G. Kargl)
1995-10-05 06:18:48 +00:00
Andrey A. Chernov
ddcf802236
Upgrade to 2.9
1995-08-21 12:34:18 +00:00
Joerg Wunsch
29eaad36e5
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).
1995-06-24 17:15:56 +00:00
Rodney W. Grimes
7799f52a32
Remove trailing whitespace.
1995-05-30 06:41:30 +00:00
Andrey A. Chernov
b5c3f5e746
Remove setre* hacks, we have working thing now
1995-04-27 19:27:42 +00:00
Andrey A. Chernov
9cb939b4b4
Fight over non-working setruid
1995-04-15 22:08:10 +00:00
Andrey A. Chernov
b89321a57d
Upgrade.
1995-04-12 02:42:39 +00:00
Bruce Evans
68abb9f9db
Fix off by one error in calculation of `mday' (months start at 1).
...
Jan 31 gave Jan 30, often for next year.
1995-01-31 17:54:39 +00:00
Nate Williams
5e4e096e50
Changed reference from NetBSD to FreeBSD
1994-01-05 01:10:24 +00:00
Nate Williams
d78e98d22e
Added at/atrm/atq/batch from Linux as hacked by Chris Demetriou.
1994-01-05 01:09:14 +00:00