Commit Graph

1095 Commits

Author SHA1 Message Date
Peter Wemm
f2cfcae49f s/__unused/__sex_unused/ - this is simply a placeholder variable that
conflicts with what I added to cdefs.h a while ago.  I never noticed this
since I used nvi-1.71..
1996-08-24 03:49:14 +00:00
Mike Pritchard
1c1f145f2b Convert to mdoc format. 1996-08-23 21:40:59 +00:00
Mike Pritchard
c0b0bcf4d3 Use the .Bx macro where appropriate. 1996-08-23 20:36:11 +00:00
Poul-Henning Kamp
8d612dd2fc Try to make netstat more smart about port numbers.
Feedback most welcome.
1996-08-23 19:05:34 +00:00
Poul-Henning Kamp
b2420a13ab Fix a couple of file-descriptor leaks. 1996-08-23 09:33:32 +00:00
Jordan K. Hubbard
89fc51f330 Don't make -l warn when it's not used, so we can potentially set it
all the time if we want to use "link" behavior for file URLs (and not
have fetch whine at us when they're not).
1996-08-23 06:21:17 +00:00
Mike Pritchard
0f7785061e Use the .At macro where appropriate. 1996-08-23 01:06:24 +00:00
Mike Pritchard
85cf659a76 Use the .Fx macro where appropriate. 1996-08-23 00:57:08 +00:00
Jordan K. Hubbard
f0abcb4154 Print the correct thing when interrupted by a signal. 1996-08-22 23:25:24 +00:00
Jordan K. Hubbard
fc6fcbf9fc 1. Understand file:/path style URLs.
2. Add a -l flag for symlinking to rather than copying file:/path style URLs.
3. Add a -T flag for setting the timeout interval (overrides FTP_TIMEOUT if set)
1996-08-22 21:30:51 +00:00
Wolfram Schneider
7ec1929d53 code cleanup 1996-08-22 18:46:13 +00:00
Mike Pritchard
1ba266ef5e Add kzip(8) as supplied with PR# 1507, with some minor cleanup by me.
Submitted by:	 David E. O'Brien <obrien@nuxi.com>
1996-08-21 19:07:22 +00:00
Jordan K. Hubbard
608051dc0d Fix a small potential bogon I noticed here with restarts. 1996-08-21 01:27:25 +00:00
Wolfram Schneider
6127186d3c a header file for zopen.3
Pointed out by: Philippe Charnier <charnier@lirmm.fr>
1996-08-20 20:49:39 +00:00
Andrey A. Chernov
e132ded975 Fix non-break space attrs 1996-08-20 14:36:56 +00:00
Peter Wemm
ec52662281 If running under a typical sysv-style curses, including ncurses, use
hline() to draw the window split rather than fudging it with dashes.
This causes the line to be drawn in line-draw characters if the terminal
description has them.

Suggested by: ache
1996-08-20 00:31:37 +00:00
Peter Wemm
7c6d202a48 Simplistic conversion of mail to use termios instead of sgtty. 1996-08-19 20:23:35 +00:00
Peter Wemm
e151ec2315 Update some ancient warts in talk:
- use termios, not sgtty
  - dont use _putchar(), that was a BSD-curses specific feature not in
    other curses packages (such as ncurses)
  - use sigaction, not sigvec while I'm there
  - box() does different things under sysv/ncurses on 1-line high windows,
    and BSD-curses doesn't have hline(), so do it by adding characters
    instead.  That works on both styles of curses.
1996-08-19 19:42:00 +00:00
Wolfram Schneider
3819b41325 replace shell comment char `#'' with troff comment command `.\"'' 1996-08-17 23:31:38 +00:00
Wolfram Schneider
361e0905ef make install should not install any file in /etc. 1996-08-17 22:27:08 +00:00
Nate Williams
f1820d8664 kzip's usage() does not show the ``-v'' verbose option
Submitted by:	"David E. O'Brien" <obrien@nuxi.cs.ucdavis.edu>
1996-08-16 15:22:25 +00:00
Jordan K. Hubbard
477a3f5488 Add support for HTTP proxies, fix some bugs with http transfers.
Submitted-By: Mikael Hybsch <micke@dynas.se>
1996-08-14 17:50:23 +00:00
Wolfram Schneider
370021810a bigram
Bigram does not remove newline at end of filename. This
	break particulary the bigram algorithm and /var/db/locate.database
	grow up 15 %.

	Bigram does not check for characters outside 32-127.

	The bigram output is silly and need ~1/2 CPU time of
	database rebuilding.

	old:
	locate.bigram < $filelist | sort | uniq -c | sort -nr
                                    ^^^^^^^^^^^^^^
				    this can easy made bigram

	new:
        bigram < $filelist | sort -nr

code
	Code does not check for char 31.
	Use a lookup array instead a function. 3 x faster.

updatedb
	rewritten
	sync with bigram changes

	read config file /etc/locate.rc if exists
	submitted by: guido@gvr.win.tue.nl (Guido van Rooij)

concatdb - concatenate locate databases
mklocatedb - build locate database
1996-08-14 00:22:31 +00:00
Andrey A. Chernov
d293aead89 New collating rules, reflect POSIX better now 1996-08-13 12:20:11 +00:00
Peter Wemm
c00062b834 Add a simple -v (verbose) option that allows you to see when -C actually
installs something.  This is not 100% right, since it has a false hit
when install -C snaps hard links.

Also, run strip(1) from the $PATH, otherwise you need a special version
of install to install (say) elf binaries which have a different strip.
With JDP's elfkit, the layout of the path determines which binary format
you are generating.
1996-08-12 17:03:30 +00:00
Peter Wemm
366982a550 Add new option to chpass: -e "expire" ; change the account expire time
from a script as if it was done in the interactive editor.

When reassembling the gecos string, trim any excess trailing commas, they
look ugly in the passwd file. :-)

Have a simple Makefile tweak to prevent mortal users from changing their
fullname.  As ISP's we have seem some real bizzare stuff here..

When decoding the change/expire string, allow the month number as a
synonym for the name of the month.. (ie: 1 as well as Jan or January)
Note that using numbers means there's a chance that you can get bitten
if you're not used to the American DD-MM-YY order.
1996-08-12 14:45:26 +00:00
Jordan K. Hubbard
f2b2a91e75 Fix broken modtime preservation code. *Now* it preserves the modtime
correctly!
Noticed-By: knarf@camelot.de (Frank Bartels)
1996-08-12 12:55:26 +00:00
Andrey A. Chernov
bf4fce1a35 Localize it 1996-08-12 11:39:24 +00:00
Andrey A. Chernov
b7c6d4477a Make it at least semi-worked 1996-08-11 18:08:53 +00:00
Andrey A. Chernov
726aebe5e0 Localize it
8bit cleanup
1996-08-11 17:46:35 +00:00
Andrey A. Chernov
6004290380 Pick collate info for RE character ranges 1996-08-11 16:22:47 +00:00
Andrey A. Chernov
1b91f0ec7f Describe collation order rules (from POSIX WG) 1996-08-11 14:55:14 +00:00
Alexander Langer
f20e416903 Fix some improperly wrapped lines in the code. 1996-08-11 02:20:05 +00:00
Peter Wemm
16964dae41 s/trace -C/ktrace -C/
Pointed out by: zgabor@code.hu (Zahemszky Gabor)  PR#1486
1996-08-10 09:05:17 +00:00
Peter Wemm
fb9e3ade6c Remove the need for rdist(1) to run setuid, thus completely closing any
possibility of a security hole.  It now does what rdist-6 does, and calls
/usr/bin/rsh if not running as root.  There are NO protocol changes, this
is 100% compatable with the old rdist, except that it does not need setuid
root privs.

However, there are some minor differences to the base rdist-6 code in that
if it is being run by root, it will call rcmd(3) directly rather than
piping everything through rsh(1).  This is a little more efficient as it
doesn't involve context switching on pipe reads/writes.

Also, the -P option was added from rdist-6.1.2, which allows an alternative
rsh program to be specified, such as ssh.  Note that it requires the fixes
to the ssh port to disable the unconditional USE_PIPES option that was
recently added.  The rcmd(3) optimisation is disabled if a non-rsh program
is speficied.
1996-08-10 07:54:17 +00:00
Joerg Wunsch
fef1477642 Fix a potential buffer overflow condition.
Submitted by:	Somebody on -hackers, ooops, i've already deleted that mail
1996-08-08 07:58:07 +00:00
Peter Wemm
2f15594269 Move tsort back to lib-tools where it belongs, and add a "specially
for bootstrap" tweak to the lex Makefile to stop it building the library
too early.

This untangles things a bit more, it stops new bootstraps failing because
libl/libfl uses 'ld -O' before ld is updated.
1996-08-07 13:25:59 +00:00
Jordan K. Hubbard
c668d40c24 Defer to fashion. 1996-08-07 02:15:26 +00:00
Jean-Marc Zucconi
d616694a11 Suppress the messages from the server after login (ftpVerbose(ftp,0)). Errors
are already correctly reported.
1996-08-04 00:35:39 +00:00
Wolfram Schneider
5514e5cb54 documented that the dog Biff is dead
Obtained from: A Quarter Century of UNIX, Peter H. Salus
1996-08-03 14:25:02 +00:00
Jordan K. Hubbard
390a3f8faa Adapt to new libftpio. [jkh]
Better error messages.
Submitted-By: "David E. O'Brien" <obrien@Nuxi.cs.ucdavis.edu>
1996-08-03 13:14:47 +00:00
Jordan K. Hubbard
8566830b43 Close PR#1455. In a couple of weeks, I'll change bsd.lib.mk to use
tsort -q as well - I don't feel like adding tsort as Yet Another Item to the
bootstrap target.
1996-08-02 04:50:44 +00:00
John Polstra
f0850246bb Fix a bug under time's "-l" option. The values reported for average
shared memory size, average unshared data size, and average unshared
stack size were too high by a factor of 128/100, because the program
used a hard-coded hz value of 100.  The correct value is the frequency
of the statistics clock, currently 128.  The program now uses sysctl
to get the stathz value from the kernel.

Discussed with:	bde@freebsd.org (Bruce Evans)
1996-07-30 19:00:12 +00:00
Adam David
6439f56e80 one file somehow slipped by me in the previous commit
tidy up
1996-07-30 15:44:30 +00:00
Adam David
49a598ab87 when file can be opened for read but cannot be read from:
fail once (was twice) in forward case
fail once (was no times) in reverse case

this can happen when file is a directory on an NFS or procfs mount.
1996-07-30 13:11:43 +00:00
Wolfram Schneider
e8e96a328e ree (aka ee) doesn't have a man page
Submitted by:	 Philippe Charnier           charnier@lirmm.fr
1996-07-29 13:46:12 +00:00
Paul Traina
9c197ec156 Add newline, closes bin/1433 1996-07-26 23:45:36 +00:00
Paul Traina
7f7e1b67ff Add Bruce's improvement to security patch 1996-07-25 18:27:40 +00:00
Garrett Wollman
4680e2ceec Fix an itinerant cross-reference. 1996-07-25 18:11:30 +00:00
Julian Elischer
e56dd1bb4f Submitted by: archie@whistle.com
slight cleanups on yesterday's patches
1996-07-23 22:00:14 +00:00