Commit Graph

5925 Commits

Author SHA1 Message Date
ru
cf1820c5e5 Sort by month/day/year/login. 2002-10-31 08:55:33 +00:00
mux
c194828c88 Fix core dumps when invoking with something like ``last -w1''.
PR:		bin/44583
Reported by:	Amit Chakradeo <sdbug@spam.chakradeo.net>
MFC after:	3 days
2002-10-30 18:19:59 +00:00
jmallett
b0b9669c4d When we appear to want a signed value from sizeof(), use ssize_t in the cast,
rather than int.
2002-10-30 15:50:00 +00:00
des
bde988ef15 Clarify my feelings towards fetch / libfetch. 2002-10-30 04:53:58 +00:00
grog
2ec8dbcf5e Output .lf directives. 2002-10-30 03:24:16 +00:00
ru
b72f870406 bsd.doc.mk changes:
Don't gratuitously pipe thru a cat(1) if NODOCCOMPRESS.

Only create _stamp.extra when necessary.

Get rid of SOELIMPP and OBJS.

Use Groff version of soelim(1); we need its -I option
for the following to work.

Don't needlessly chdir to SRCDIR.  Only a few documents
need CD_HACK, and those that need it either use refer(1)
or .PSPIC macro which internally uses the .psbb call.
2002-10-29 14:56:09 +00:00
joerg
d139101c16 Don't try to dereference a NULL pw pointer. This would happen when
attempting to use chpass -a.
2002-10-29 12:45:32 +00:00
jmallett
c7026d9cf2 In VarHead(), look into the correct (modified) string. 2002-10-29 12:11:56 +00:00
ru
3fc95c5877 Mention that the left-hand side of the comparison
conditional must always be a variable expansion.

Obtained from:	PMake

Do not lie that debugging .for loops is a no-op.
2002-10-29 09:48:49 +00:00
obrien
477fc07ce9 Mostly support alternate manpage zipping. 2002-10-29 09:20:22 +00:00
jmallett
d6441cee7e Split var.c into var.c and var_modify.c and move all the modification funcs
to var_modify.c, for readability.  constify some low hanging fruit (string
manipulation functions) and the upper layers appropriately.  No longer use
the private strstr(3) implementation, while changing string code.

Tested by:      lots of successful make buildworld.
2002-10-28 23:33:57 +00:00
des
554df0c399 Don't complain about not knowing the remote file size when working in
quiet mode.

PR:		bin/37079
Submitted by:	Nicolas Rachinsky <list@rachinsky.de>
2002-10-27 17:33:08 +00:00
des
2b13c53d76 Whitespace and indentation cleanup. 2002-10-27 15:32:51 +00:00
des
ba4c120348 Forgot to disable alarms after fetchXGet() in previous commit. 2002-10-27 15:32:06 +00:00
des
9133f7a1dc Add an ETA timer that kicks in after 30 seconds.
Re-add alarm(2) calls around the calls to fetchStat(3) and fetchXGet(3),
since these calls can still time out on DNS lookups or TCP connect(2).

Remove the alarm(2) calls in the main loop, since all methods properly
handle transfer timeouts (as opposed to connection timeouts).

Set the sigalrm flag if a timeout occurs in the main loop.

Move the signal: label up a little so we still set the atime and mtime
when the transfer times out or is interrupted, so that restarted transfers
will work as expected (as long as the file still exists).

MFC after:	2 weeks
2002-10-27 15:15:13 +00:00
wollman
09d741eee8 Remove unnecessary compatibility macro. (We were only printing, not parsing,
intmax_t.)
2002-10-27 04:14:08 +00:00
wollman
9461a5f087 Add new 1003.1-2001/TC1/D6 parameters. (On final recirculation ballot now,
so this should be officially TC1 before the New Year.)

Add TrustedBSD pathconf parameters.

Add compilation support for -stable (to be merged momentarily).
2002-10-27 04:10:34 +00:00
dougb
246662679e Adjust the size passed to readlink so that the null termination
falls within the range of the path variable.

Cribbed from the latest NetBSD source.

Obtained from:	provos@NetBSD.org
2002-10-25 07:26:36 +00:00
jmallett
e615c77210 Fix problem with my ability to tell the difference between 'r' and 'l'... We
want to check var[1], not val[1].

Submitted by:	Mark Valentine <mark@thuvia.demon.co.uk>
Pointed out by:	sam
Pointy hat to:	jmallett
2002-10-24 20:37:58 +00:00
jmallett
4c66803666 When expanding a specific [1-char] variable, only expand said specific
[1-char] variable.  Don't just automatically expand something which
starts with that character.

Obtained from:	OpenBSD [3 years ago!]
2002-10-24 12:57:42 +00:00
jmallett
e5558b972a Duplicate the variable name in the v->name field, as otherwise it points to
data that will be modified.  And do the appropriate thing now and free the
v->name buffer along with other relinquished memory.

XXX There is duplication here of destroying a Var, which is probably bogus,
and probably missed in a few places.
2002-10-24 04:10:55 +00:00
jmallett
b16e89807f Remove efree(), it isn't used consistently enough to even pretend that it
might help on the systems it could possibly be used as a bandaid for.  In
fact, the only thing it's useful for is instrumenting free(3) calls, and in
that capacity, it's better served as a local patch, than a public wrapper.
2002-10-23 23:16:43 +00:00
markm
a34db31767 Change the type of an unused variable to appease a warning. 2002-10-23 19:10:15 +00:00
markm
820235c757 Adjust for getbsize argument type change. 2002-10-23 19:02:17 +00:00
markm
d1625bacf4 Remove unneeded function prototypes. 2002-10-23 16:20:12 +00:00
ru
34a52f8114 Need to run lint1 from ${WORLDTMP}/usr/libexec during buildworld.
Spotted by:	fjoe
2002-10-23 12:05:27 +00:00
rwatson
9c5475732e Add a new '-s' option to su(1): if the flag is present, attempt to
also set the user's MAC label as part of the user credential setup
by setting setusercontext(3)'s SETMAC flag.  By default, change only
traditional process properties.

Approved by:	re
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2002-10-23 03:19:34 +00:00
jmallett
965d783bfd De-obfuscate and correct the include path handling for SysV style includes.
PR:		32759
Submitted by:	Mark Valentine
Reviewed by:	Matthew Emmerton" <matt@gsicomp.on.ca>
MFC after:	15 days
2002-10-23 01:57:33 +00:00
ache
8a29ded141 Use more verbose diagnostics for wrong DIGIT range 2002-10-20 23:09:26 +00:00
ache
38e3e855d7 Add checks for DIGIT set consistency to prevent common misinterpretation
automatically.
Remove output file on error.
Staticize functions declared as static.
2002-10-20 19:56:15 +00:00
fanf
f6211ebd73 Improve the way base64 mode is enabled based on the program name,
so that it works when the path to b64encode is used to run it.
2002-10-20 14:18:25 +00:00
arved
cffe5cc386 Add my birthday.
Approved by: kris (mentor)
2002-10-20 13:33:45 +00:00
grog
fca9353d18 Sort by date. 2002-10-20 02:20:31 +00:00
grog
b1332d700d Clarify holidays which apply only to the USA
Clarify that the USSR no longer exists, but some of the holidays are
celebrated anyway.

Reviewed in part by:	ru

Remove Jewish and most Muslim holidays.  They're all wrong, since they
don't apply to the Western calendar.  The much more complete Jewish
holidays are in calendar.judaic.  The Muslim holidays need to be
collected into a file, but there's not much point in having the wrong
date.

Remove many Fiji holidays.  They change every year by Government
decree, and some were duplicated as a result.

Remove some duplicates.

There's still a lot to be done; in particular, I think the Japanese
and British holidays are very inaccurate.  This file needs checking by
people who know the details.
2002-10-20 02:12:46 +00:00
sobomax
890ee7068b Fix a problem with RTLD_TRACE flag to dlopen(3), which sometimes can return
even if there was no error occured (when trying to dlopen(3) object that
already linked into executable which does dlopen(3) call). This is more
proper fix for `ldd /usr/lib/libc.so' problem, because the new behaviour
conforms to documentation.

Remove workaround from ldd.c (rev.1.32).

PR:		35099
Submitted by:	Nathan Hawkins <utsl@quic.net>
MFC after:	1 week
2002-10-19 10:18:29 +00:00
ru
3528a2ae54 Revert last delta. SGR support in grotty(1) is disabled system-wide
in /usr/share/tmac/troffrc pending the issue resolution on -arch.
2002-10-18 09:14:17 +00:00
markm
eabfb5764c When a user gets refused because the password is wrong, use the
older "BAD SU" syslog message that folks prefer. There is quite
a bit more tweaking that can be done with other similar messages.

Asked for by:	tjr
2002-10-18 08:23:24 +00:00
adamw
c0f75920fb Add myself
Approved by:	pat (mentor)
2002-10-18 07:50:46 +00:00
trhodes
227a22eb85 Everyone else is doing it! (adding their birthdays) 2002-10-18 06:21:09 +00:00
maho
770a2b0ad2 New committer's first commit(birthday). 2002-10-18 05:48:55 +00:00
daichi
69c9bd9d4c New committer first committion.
addition my birthday.
2002-10-18 04:56:03 +00:00
tjr
f2d5dee5e7 Style: use sa_handler instead of __sigaction_u.__sa_handler. 2002-10-17 23:32:44 +00:00
charnier
e0868195fe Use .Fl/Ar for flags and arguments. 2002-10-17 13:04:49 +00:00
charnier
be72d049f1 Introduce option enumeration the standard way. 2002-10-17 12:58:14 +00:00
markm
ec19b8de09 Dekerberise. The corresponding userland stuff has been dekerberised
for ages, and no-one seems to have noticed. Viva PAM!
2002-10-16 16:10:46 +00:00
markm
1d913ae9f1 Dekerberise. The corresponding userland stuff has been dekerberised
for ages, and no-one seems to have noticed. Viva PAM!

Fix some easy/trivial warnings while I'm here.
2002-10-16 16:09:05 +00:00
charnier
483c4159ed Add section number to .Xr directive. 2002-10-16 15:46:43 +00:00
charnier
f8c28d5ae2 The .Nm utility 2002-10-16 15:38:28 +00:00
charnier
f9afb527d0 Introduce enumerate of options using the standard way.
Remove .Pp between items.
2002-10-16 15:32:16 +00:00
charnier
46e9ffcba2 Introduce enumerate of options using the standard way: 2002-10-16 15:28:20 +00:00