Commit Graph

1478 Commits

Author SHA1 Message Date
Garrett Wollman
cb0cd746b5 Fix PR#2700: report correct transmission speed, and restart transfers
from the restart point, not the end of the file (blush!).

Submitted by:	John-Mark Gurney <jmg@nike.efn.org>
1997-02-10 18:49:42 +00:00
David Nugent
720cdec3f6 Adds login class support for local & nis passwords:
- minpasswordlen=n         override minimum password length for class.
    - passwordperiod=n[smhdwy] auto-set next password change date.
1997-02-10 15:42:12 +00:00
Mark Murray
81eb579301 Better buffer length calculation and overrun detection. Closes PR 2577
Submitted by:	Julian Assange
1997-02-09 21:34:14 +00:00
Mike Pritchard
a29f1d234c Typo police. 1997-02-09 21:14:48 +00:00
Joerg Wunsch
b5b54135f4 Add a manpage for brandelf(1). Minor stylistic fixes, and a buffer
overrun fix, too.

Submitted by:	John-Mark Gurney <jmg@nike.efn.org>
1997-02-09 20:35:54 +00:00
Eivind Eklund
ab25b7d505 Removed potential buffer overflow. 1997-02-09 16:11:13 +00:00
Mike Pritchard
fab46a51da Really fix calendar to drop all permissions when
run with "calendar -a".  Also don't ignore the return
values from the setuid/setgid calls.

Thanks to bde for making me this about this.
1997-02-09 07:45:03 +00:00
Mike Pritchard
16c359a3de Typo fix.
Closes FreeBSD PR#2685.

Obtained from: NetBSD-BUGS PR# 3199
1997-02-09 07:01:33 +00:00
Poul-Henning Kamp
ed5392a66c Basically reverse last commit which was plain wrong. 1997-02-08 08:57:22 +00:00
Garrett Wollman
df6c4acc3c Fix off-by-one error in proxy host:port parser.
Submitted by:	fenner
1997-02-07 17:55:01 +00:00
Poul-Henning Kamp
1573315810 Add ${.CURDIR}/ to relative path to contrib. 1997-02-07 12:29:27 +00:00
Paul Traina
f89bbf631f Activate new OPIE programs 1997-02-07 03:57:21 +00:00
Paul Traina
f076997839 Build opiepasswd from contrib_opie module. 1997-02-07 03:56:15 +00:00
Paul Traina
247fd82927 Build opiekey from contrip_opie sources. 1997-02-07 03:54:54 +00:00
Paul Traina
dd7bd805eb Build opiekey from the contrib_opie module. 1997-02-07 03:53:12 +00:00
Wolfram Schneider
b883c8a310 delete unused variable BINDIR=/usr/libexec
/usr/bin -> ${BINDIR}
1997-02-06 15:00:24 +00:00
Mike Pritchard
3b4984d039 Initialize the group list when we switch uids when run as
root with "calendar -a".  Drop all privs when execing other
programs.

Obtained from: OpenBSD
1997-02-06 05:42:49 +00:00
Mike Pritchard
6836c26dc5 Add a couple of relavant man page xrefs for more information
on the structures time(1) displays, instead of refering
he reading to an include file.

Obtained from: NetBSD-bugs mailing list PR#3193
1997-02-06 05:21:39 +00:00
Garrett Wollman
76dafb8954 Some bug-fixes, clean-ups, and one new feature:
- Fix the bug with URIs of the form ftp://host/filename.
- Fix some more string-termination bugs in util.c.
- Use safe_malloc() rather than testing the return value of
  regular malloc() in 15 places.
- Implement HTTP authentication, for both servers and proxies.
  Currently only ``basic'' authentication is supported; This Is A Bug
  (but less of one tjhan nmot supporting any authentication).

I think there is only one more feature which is required for full
HTTP/1.1 support, which is Transfer-Encoding: chunked; this should
not be toohard, but it isn't very important, either.
1997-02-05 19:59:18 +00:00
Poul-Henning Kamp
f2071a9cf6 Add framemaker 5.0.
This file could be rationalized I belive.
1997-02-04 17:06:19 +00:00
Paul Traina
2ed98aa017 Cruft cleanup to eliminate useless warnings 1997-02-02 21:33:37 +00:00
Wolfram Schneider
65d758c4cb ${DESTDIR}/usr/bin -> ${DESTDIR}${BINDIR} 1997-02-02 14:41:43 +00:00
Bruce Evans
6525961b64 Null-terminate the string in percent_decode() so that we don't depend on
malloc() returning zeroed storage or dump core while starting up.

Found-by:	/etc/malloc.conf ->AJ
1997-02-02 09:16:37 +00:00
Mike Pritchard
3fef3b185e Fix calendar so that it doesn't report strange results on
Jan 1st (and probably other dates as well) for some variable
events.  E.g.

01/SunThird	whatever...

Was being printed as:

Jan  0	Whatever

when calendar was run on January 1st.

Closes PR#2461.
1997-02-02 07:37:46 +00:00
Garrett Wollman
2494e810b8 Some fixes for HTTP:
1) Implement redirects (or try to, at least).
2) Implement automatic retry after 503 errors when Retry-After is given.
3) Implement a -a flag to enable both of these behaviors.
4) Recognize Transfer-Encoding headers and emit a warning that the file
  is likely to be damaged.
5) Bug fix: only write the amount of data we read.
6) Actually document some of these.
7) Fix the usage message to display flags in semi-alphabetical order.
1997-01-31 19:55:51 +00:00
Mike Pritchard
2f1c3cc872 Correct the year that Sydney Australia was settled.
Submitted by:	 <stephen.ma@jtec.com.au>
Obtained from:  NetBSD-bugs PR#3115
1997-01-31 02:22:29 +00:00
Garrett Wollman
78be319939 Here is my long-threatened revamping of fetch. Jean-Marc probably won't
recognize it any more.  This makes the following significant changes:

- The main body of the program doesn't know a thing about URIs,
  HTTP, or FTP.  This makes it possible to easily plug in other
  protocols.  (The next revision will probably be able to dynamically
  add new recognizers.)

- There are no longer arbitrary timeouts for the protocols.  If you want
  to set one for yourself, use the environment variables.

- FTP proxies are now supported (if I implemented it right).

- The HTTP implementation is much more complete, and can now do restarts,
  preserve modtimes, and mrun in mirror mode.  It's not yet up to 1.1,
  but it's getting there.

- Transaction TCP is now used for sending HTTP requests.  The HTTP/1.1 syntax
  for requesting that the connection be closed after one request is
  implemented.

In all of this, I have doubtless broken somebody.  Please test it and tell me
about the bugs.
1997-01-30 21:43:44 +00:00
Wolfram Schneider
fa363c34a4 The option "fstype" does not handle the argument "msdos" correctly.
This error results from changing the name for the msdos file system
from "pcfs" to "msdos". Close PR #1105

submitted by: Thomas Wintergerst <thomas@lemur.nord.de>,
              Slaven Rezic <eserte@cs.tu-berlin.de>
1997-01-28 13:18:46 +00:00
Wolfram Schneider
7f6f2e9466 Store temp files in current directory instead /tmp. The current
directory is usually not world writable, this avoid security
problems due the evil Berkeleian symlinks.
1997-01-27 00:10:53 +00:00
Jordan K. Hubbard
d87e2a2cc5 Don't dereference NULL pwd on non-existant username (I wonder how long
THAT has been in here!).
1997-01-22 18:36:27 +00:00
David Nugent
5217f56ec6 Fix handling of empty shell field in passwd file (use /bin/sh); problem
was caused by introduction of login classes. Closes PR bin/2550.
Added references to login.conf to manpage, crossreference to login.conf(5).
1997-01-22 02:45:16 +00:00
Garrett Wollman
a5969f5ffc Print out the new uninteresting-multicast-packets statistic. 1997-01-21 21:08:57 +00:00
David Nugent
0a98733422 Activate limits(1). 1997-01-21 15:09:03 +00:00
David Nugent
c03293e593 limits(1): set and display process resources. 1997-01-21 15:05:15 +00:00
John Fieber
aeae2333f4 Make -hdr and -ftr options (to include arbitrary HTML at the
top and bottom of output) work with docbook.
1997-01-19 21:21:18 +00:00
John Fieber
3697c8d8a6 Do the Right Thing(TM) with source files that have extensions
other than .sgml.
1997-01-18 01:48:04 +00:00
John Fieber
0e224fbc11 Add rudimentary docbook support:
sgmlfmt -d docbook -f html myfile.docb

Depreciate undocumented -white option (now default).
1997-01-17 23:38:40 +00:00
Joerg Wunsch
8a641b5f2e Update for the French message catalog.
Submitted by:	charnier@xp11.frmug.org (Philippe Charnier)
1997-01-17 23:01:18 +00:00
John Fieber
3a3cc0fe3e Close PR #2453 (illegal tags in HTML <TITLE> element)
2.2 fodder
1997-01-17 21:44:45 +00:00
Joerg Wunsch
cefe4f6fa2 Fix a genuine off-by-one error that caused join to dump core when
trying to use field numbers tha weren't present in the input data.
1997-01-17 18:55:05 +00:00
Jordan K. Hubbard
ae0fde8e14 Handle timeouts in a slightly less baroque way. 1997-01-17 12:52:12 +00:00
Alexander Langer
8abdc2eb40 Sweep through the tree fixing mmap() usage:
- Use MAP_FAILED instead of the constant -1 to indicate
    failure (required by POSIX).
  - Removed flag arguments of '0' (required by POSIX).
  - Fixed code which expected an error return of 0.
  - Fixed code which thought any address with the high bit set
    was an error.
  - Check for failure where no checks were present.

Discussed with:	bde
1997-01-16 21:58:40 +00:00
Wolfram Schneider
da1ff3cb8a Sort cross references. 1997-01-15 23:25:55 +00:00
Mike Pritchard
d0aa25cbc5 Document the "more" command.
Submitted by:	Julian Coleman <j.d.coleman@ncl.ac.uk>
Obtained from:  NetBSD-bugs PR# 3104
1997-01-15 04:44:08 +00:00
David Nugent
a564e85582 Fix problem with mask passwd to setusercontext() which
prevented uid/group change with non-root target.
1997-01-14 09:24:09 +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
Garrett Wollman
75fb877061 Print out the interface's multicast addresses using the new
structures.
1997-01-13 21:27:46 +00:00
David Nugent
e888e45a99 Document effect of login class capabilities. 1997-01-13 06:52:24 +00:00
David Nugent
91bcac64b4 Make su login_cap savvy.
As with login(1), LOGIN_CAP_AUTH is not yet enabled since we don't
yet have authorisation modules.
1997-01-13 06:39:19 +00:00
Peter Wemm
6bc56a5735 Report the reason why select unexpectedly failed.. 1997-01-13 02:34:56 +00:00
Steve Price
2b5f199de6 Add RCS id's since these files have left the default branch. 1997-01-12 21:29:55 +00:00
Steve Price
2726ae5b7c This doesn't change any functionality, it simple makes yacc(1)
compile -Wall clean.
1997-01-12 21:16:25 +00:00
Joerg Wunsch
6b5d41d069 Fix the following old problem:
date: 1994/10/09 07:37:18;  author: davidg;  state: Exp;  lines: +7 -1
  #if 0'd out the meat of the swap code until I get a chance to rewrite it.

...mainly by stealing the code from pstat(8).
1997-01-12 19:38:32 +00:00
Mike Pritchard
b82b4e07ee Fix calendar so that you can run it like:
calendar -t 0101 -f file

Previously calendar's time processing routine directly
modified the "0101" argument" which confused getopt.
The time routines now make a copy of the argument
to mess with.
1997-01-12 18:35:14 +00:00
Andrey A. Chernov
faeaf734aa include ctype.h to pick isprint macro 1997-01-12 13:34:13 +00:00
Steve Price
2b6dfbee74 Revert the '-o output_file_name' option changes. 1997-01-12 04:04:52 +00:00
John Polstra
18c0f29eaa Set LD_TRACE_LOADED_OBJECTS to "1" instead of to "". The dynamic linker
now treats empty "LD_*" environment variables as if they were unset, per
the standard SVR4 conventions.
1997-01-12 00:10:57 +00:00
Mike Pritchard
c8cb0990af Add a couple of xrefs. Closes PR# 1280. 1997-01-11 19:58:11 +00:00
Mike Pritchard
1ae7534949 Add a couple of xrefs. 1997-01-11 19:57:47 +00:00
David Nugent
6acc486b3f Makes login login_cap-savvy.
Note that LOGIN_CAP_AUTH code (login authentication) is not (yet) enabled
and requires /usr/libexec/login_<style> authentication program support to
be added at a later date. The Makefile contains a macro LC_AUTH to turn
it on and prevent unnecessarily linking against skey/krb libs and the
addition of klogin.c module.

All other aspects of login_cap support are fully functional.
1997-01-11 07:16:35 +00:00
Bruce Evans
8f1ab0d02b Removed stray DPADD. 1997-01-10 05:08:25 +00:00
John Polstra
775f9cd54d For "ldd -v", print shared object dependencies that were specified as
pathnames (rather than as "-lfoo") correctly.
Closes PR bin/2404.
1997-01-10 02:51:00 +00:00
Andrey A. Chernov
0743315ba6 Make 'skey' command visible through 'help' 1997-01-10 00:29:00 +00:00
Andrey A. Chernov
914860e874 Use -DSKEY instead of wrong -DPATH_SKEY 1997-01-10 00:27:50 +00:00
John Polstra
ae06cb4d32 On failure, return various exit codes from <sysexits.h>. In particular,
return EX_TEMPFAIL if the file was already locked.  This makes it easier
to distinguish between lock collisions and failures within the command
being executed.

Also, don't complain if the unlink() fails in the cleanup handler.  It
doesn't matter anyway, and it obscured the exit status returned from
the command that was executed.
1997-01-09 19:53:21 +00:00
Mike Pritchard
9d16a728b6 Make the man page agree with the actual vmstat output
and options.
1997-01-09 06:49:33 +00:00
John Polstra
8e42672199 Enable lockf. 1997-01-08 20:19:22 +00:00
John Polstra
c8929a4926 Initial import of the lockf utility. It executes an arbitrary command
while holding an exclusive lock on a file.
1997-01-08 20:12:59 +00:00
Joerg Wunsch
c28065c606 Our mmap(2) has a limitation where the `offset' parameter must be
page-aligned.  cmp(1) should know about this flaw, and work around it.

While i was at it, fixed an uninitialized variable as reported by
-Wall.
1997-01-08 12:00:55 +00:00
Andrey A. Chernov
1f18743134 Make eBones/telnet only if MAKE_EBONES defined 1997-01-08 11:38:33 +00:00
Mike Pritchard
5f169eef3e Remove an extra tab. 1997-01-08 07:24:52 +00:00
John Fieber
945a701173 Add an "else" clause to _followrel.
This should be in 2.2.
1997-01-08 01:40:52 +00:00
Paul Traina
e1fb4daa3e TCP statistics are unsigned counters.
Tor Egge reports counter wrap and requests and update to quad_t sized
counters, which is also a good thing to do,  but I'm unhappy about adding
two more instructions into the  code path every time we doink a counter.

Maybe with or after the Lite2 merge...
Submitted by:	Tor Egge <Tor.Egge@idt.ntnu.no>
1997-01-07 20:09:28 +00:00
Paul Traina
b833b30221 Import a few relatively minor fixes from current Borman telnet.
Add some buffer overrun fixes from OpenBSD and myself.
Add skey calculator kludge from OpenBSD.

TODO: do a real merge of dab's sources... probably just make telnet and
	telnetd contrib software.

Obtained from: OpenBSD, dab@bsdi.com
1997-01-07 19:47:58 +00:00
Andrey A. Chernov
5e572a7e34 Fix bugs in runes data handling
Should go into 2.2
Submitted by: Mitsuru IWASAKI <iwasaki@pc.jaring.my>
1997-01-07 09:58:32 +00:00
Bruce Evans
e58b89de25 Fixed DPADD to match LDADD. 1997-01-06 07:14:41 +00:00
Steve Price
610a365e2d Merge Lite2 mods. 1997-01-06 03:07:20 +00:00
Steve Price
55f61394b6 Implement and document a '-o output_file_name' option to
allow the generated code to be written to a file other
than the default, y.tab.c.

Inspired by: bde and brian@mediacity.com
1997-01-06 02:05:28 +00:00
Garrett Wollman
8766942543 Update to match changes in <net/if.h> and <netinet/ip_mroute.h>. 1997-01-03 20:16:31 +00:00
Adam David
fb16fcb52d fix braino on my part 1997-01-01 04:27:46 +00:00
Bruce Evans
015a0dc2e4 Use ${COPY} instead of -c for installing non-source files. 1997-01-01 04:22:23 +00:00
Adam David
98b0613977 icelandic collation
(non-icelandic characters in latin1 order)
1996-12-31 18:57:26 +00:00
Andrey A. Chernov
87a16f44fa Add de and es collates
Submitted by: joerg
1996-12-30 22:28:51 +00:00
Peter Wemm
42f84d8323 Fix bug found by new prototypes. The code was passing an int to a function
that was expecting a "struct timeval" on the stack.  I've guessed at a
suitable replacement timeout.
1996-12-30 15:30:11 +00:00
Peter Wemm
f0a30d9b59 Fix bug found by newly visible function pointer prototypes. This
was passing an int to something expecting a "struct timeval".

I've guessed at a timeout to replace it with..
1996-12-30 15:28:38 +00:00
Peter Wemm
399a5e4ac2 Fix bug found by newly visible prototypes in rpc. The code was passing
an in to a function instead of a "struct timeval".
1996-12-30 15:26:51 +00:00
Peter Wemm
9a42f83552 When using the perl5 extensions, ask perl itself what the pathnames are,
don't just hard code them into the Makefile.

(This is the optional stuff to use perl scripts as a vi scripting language.
 eg, to load a sample script, type:   :perl do 'wc.pl';
 this loads /usr/share/vi/perl/wc.pl to add the "wc" command. Then, one can
 do this:   :perl wc   Yes, this is a trivial example. There are more
 useful examples, eg 'make' output parsing along the lines of emacs's
 "compile" mode.  The tcl extension is similar and enabled by default since
 we ship with tcl.)
1996-12-30 09:24:19 +00:00
Joerg Wunsch
6b27324a93 Merge ee version 1.3 from the vendor branch. Clean up files we've got
in a different location.  (Sigh, the initial import gratuitously
changed the directory structure here, rendering the vendor branch a
little useless.)

Note: the French message catalog needs updating.  By now, i've simply
appended the English messages.  NB: French message # 123 has been
wrong, please correct whoever is going to deal with this.
1996-12-29 10:54:36 +00:00
Peter Wemm
c3d9ef558c Enable idlok() in both windows. This is actually a no-op for libcurses
(which doesn't use the setting at all), but when linking with
recent versions of libncurses, ncurses screws up without it for some reason
(presumably a ncurses bug).
1996-12-28 20:44:58 +00:00
Joerg Wunsch
09113d5457 This commit was generated by cvs2svn to compensate for changes in r20983,
which included commits to RCS files with non-trunk default branches.
1996-12-28 20:31:06 +00:00
Joerg Wunsch
465fbee7fd Update from the author, just onto the vendor-branch by now.
Submitted by:	h_mahon@fc.hp.com (Hugh Mahon)
1996-12-28 20:31:06 +00:00
Wolfram Schneider
13608f6661 comma typos 1996-12-23 23:09:55 +00:00
Joerg Wunsch
2fc6cb6a37 Fix a logico that sneaked into the manpath handling.
Turn off error messages from locate(1), we can't do very much about
its database not being ok anyway at this time.

Closes PR # bin/2183: whereis returns environ...
1996-12-23 18:55:32 +00:00
Jordan K. Hubbard
e9b074c385 Allow mail(1) to look for multiple mail.rc files.
Submitted-By: Lyndon Nerenberg VE7TCP <lyndon@orthanc.com>
1996-12-21 22:53:58 +00:00
Mike Pritchard
b8fbc4da90 Replace a bunch of tabs by spaces, since they
should not be used in man page text.
1996-12-21 20:03:02 +00:00
Mike Pritchard
25b4b4dc62 Grammar/spelling/style fixes.
2.2 candidate.
1996-12-21 19:57:14 +00:00
Joerg Wunsch
4205b53dc0 Move the check for ASCIIness earlier. This avoids the following
misdetection:

j@uriah 307% file X.hga
X.hga: 80386 COFF executable not stripped
j@uriah 308% strings X.hga | head -3
~f&`i
.text
.data
j@uriah 309% strings X.hga | file -
standard input:              assembler program text

New version:

j@uriah 310% strings X.hga | ./file -
standard input:              International language text

Reviewed by:	christos@deshaw.com (Christos Zoulas)
1996-12-20 22:19:18 +00:00
Warner Losh
9b50a3ce03 Fix problem in ftp and case mapping mode where the converted string wasn't
terminated properly.  Fix is from the PR and works for the test cases I
threw at it.  Should be safe and desirable for back porting to 2.2 or
earlier if there are people still comitting to -stable.

Submitted by:	Marc Slemko <marcs@znep.com>
Closes PR:	1864
1996-12-17 17:59:40 +00:00
Andrey A. Chernov
9263e09a24 Add \' to valid escapes list to be compatible with printf
2.2 candidate
1996-12-15 23:55:03 +00:00
Alexander Langer
f3792cedc3 Typo fix.
Submitted by:	Philippe Charnier <charnier@xp11.frmug.org>
1996-12-15 15:14:26 +00:00