Commit Graph

15603 Commits

Author SHA1 Message Date
wosch
d0178711b1 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
julian
26e447cff9 Submitted by: Archie@whistle.com
if making a interface route, and it's a P2P link,
then also automatically lable it as an llinfo entry so that
gated and friends don't clobber it..
1996-08-13 22:20:20 +00:00
wosch
4b4df814d1 Do not send "welcome mail" as default. If you want this feature
you can still enable it. Better, use mail client like elm or pine.

Requested by: Jordan
1996-08-13 21:50:51 +00:00
jkh
eec30857cb Correct instructions for ftp'ing entire ports hierarchies.
Submitted-by: Elliot Schwartz <elliot@mit.edu>
1996-08-13 19:51:36 +00:00
julian
f55089f5bf Submitted by: doug Rabson (dfr@render.com)
cleaning up some of the vnode usage..

(I'm sure it still needs more..)
where can one find out what each vfs call expects to be locked
on completion, and how can one find out what each layer expects
to be freed on error.?
1996-08-13 19:48:41 +00:00
pst
813d29ff8c Completely rewrite handling of protocol field for firewalls, things are
now completely consistent across all IP protocols and should be quite a
bit faster.

Discussed with: fenner & alex
1996-08-13 19:43:41 +00:00
pst
ed54108cc7 Completely rewrite handling of protocol field for firewalls, things are
now completely consistent across all IP protocols and should be quite a
bit faster.

Use getprotoname() extensively, performed minor cleanups of admin utility.
The admin utility could use a good kick in the pants.

Basicly, these were the minimal changes I could make to the code
to get it up to tollerable shape.  There will be some future commits
to clean up the basic architecture of the firewall code, and if
I'm feeling ambitious, I may pull in changes like NAT from Linux
and make the firewall hooks comletely generic so that a user can
either load the ipfw module or the ipfilter module (cf Darren Reed).

Discussed with: fenner & alex
1996-08-13 19:43:24 +00:00
peter
8864908b30 Fix nasty bracketing/precedence bug. Every time something read (and
refilled) a file that was either line- or un-buffered, all files were
flushed.  According to the code comment, the flush (according to ANSI)
is supposed to happen on write + line buffered output files, not _all_
files.

Obtained from: OpenBSD / Theo de Raadt, possibly from proven@cygnus.com
1996-08-13 17:49:45 +00:00
ache
3582282621 Back out fallback approximation changes, they are not so right to live 1996-08-13 17:03:18 +00:00
fenner
f34ca46f19 Fix last commit (and PR bin/1489) by creating both sockets before
setuid().
1996-08-13 16:28:59 +00:00
ache
e57e1386da Add collate_range_cmp 1996-08-13 14:55:09 +00:00
ache
985cc27c6e Back out minor bumping per Peter suggestion 1996-08-13 14:37:53 +00:00
ache
2e0a5e4c41 Use collate for alpha character ranges 1996-08-13 14:33:05 +00:00
ache
57c5d7262c Use collate for alpha character ranges 1996-08-13 14:21:48 +00:00
ache
638131c27e #if !ANSI !POSIX newly added collate_range_cmp function 1996-08-13 14:01:40 +00:00
ache
23869d1bec simplify/speedup/extend 1996-08-13 13:38:35 +00:00
jkh
2fb5c6805d Reverse my patch which erroneously removed the library dependencies
for a library.  They're needed.
1996-08-13 12:46:10 +00:00
ache
c4d0a3d9ea New collating rules, reflect POSIX better now 1996-08-13 12:20:11 +00:00
ache
0b0b4007a5 Bump minor number - new function added 1996-08-13 10:00:35 +00:00
peter
182f3eb76f Fix a few minor type problems that turned up with gcc-2.7.2 1996-08-13 09:21:38 +00:00
peter
36d570d74b Add RTF_STATIC to default route's flags in the hope that routed will no
longer remove it while it is running.
1996-08-13 09:19:45 +00:00
peter
7d811b9c99 Add RTF_STATIC to flags when creating a default route. Hopefully this
will stop routed from removing it if it is also running.
1996-08-13 09:16:49 +00:00
peter
43aec75902 Same as non-secure telnetd, add support for ``-P altlogin'' to specify
an alternate /usr/bin/login type program to be run.
1996-08-13 07:53:54 +00:00
peter
1b4c397ee1 Add a ``-P altlogin'' option which allows the sysadmin to specify an
alternate login(1) type program to run.
1996-08-13 07:51:45 +00:00
julian
8870f8cc53 symlink support in devfs.
it only barely works so don't get too carried away..
I noticed that teh symlink is length 0..
I guess I'll fix that tomorrow..
it also sometimes panics with "cleaned vnode isn't" but it's not more
broken than it was before.. I really want to go over it with someone
who understands the lifecycle of a vnode better than I do..

terry?
kirk?
david?
john?
1996-08-13 07:21:45 +00:00
pst
d5a2ef8561 Attempt to unlink any stale .o files before relocating code.
Abort if a file is still present, and make output file mode 0600.

Reviewed by:	bde
1996-08-13 00:50:59 +00:00
pst
59e5ce754b Cover a potential buffer overrun problem 1996-08-13 00:43:01 +00:00
pst
d9c426a355 Fix tcp/udp port ranges 1996-08-13 00:41:05 +00:00
chuckr
261075a476 Change in man page to document "-" flag as stdin/stdout, add
example showing how to move file hierarchies.
Reviewed by:	jkh
1996-08-13 00:13:49 +00:00
ache
545ed1a8d9 Take out 0201-0207 range - those characters abused by sh 1996-08-12 22:14:50 +00:00
ache
14436b9fc7 Convert to newly added collate compare function 1996-08-12 21:32:15 +00:00
joerg
2ce4be9f4f Fix two minor oddities introduced by my yesterday's patches:
. preserve a multi-char sequence in a small static buffer inside
  pccngetc(), so it won't be clobbered later (used to happen when
  breaking into DDB user Ctrl-Alt-ESC), and

. simplify the ``keystroke is present'' determination in sgetc(), thus
  making pccncheck() actually working without waiting for a keystroke.
1996-08-12 21:31:07 +00:00
wollman
fcf0d74f65 Back out mistaken local change that sneaked in on the last commit. 1996-08-12 20:03:16 +00:00
wollman
e009591aa0 Don't declare the user_ldt functions unless USER_LDT is defined.
Eliminates an obnoxious warning.
1996-08-12 19:57:10 +00:00
ache
7c73661dad Convert to newly added collate compare function 1996-08-12 19:31:11 +00:00
ache
37b883e483 Remove old version hooks 1996-08-12 19:18:47 +00:00
ache
790644178d Convert to newly aded collate compare function 1996-08-12 19:12:40 +00:00
ache
46004bff4b Convert to newly aded collate compare function 1996-08-12 19:04:24 +00:00
ache
e16ff27bc9 Convert to newly aded collate compare function 1996-08-12 18:56:38 +00:00
ache
9ed39675f3 Convert to newly aded collate compare function 1996-08-12 18:49:54 +00:00
ache
a1ee197cd8 There is so many places where range comparation (using collate)
needed (much more than I think initially), so I forced to add
new user-visible non-standard function to libc.
1996-08-12 18:38:49 +00:00
ache
1bd0a717c6 There is so many places where range comparation (using collate)
needed (much more than I think initially), so I forced to add
new user-visible non-standard function to libc.
1996-08-12 18:30:43 +00:00
ache
4b665568af Use collate for alpha character ranges 1996-08-12 18:03:54 +00:00
ache
0af428718d Pick collate info too 1996-08-12 17:55:41 +00:00
peter
7892bf465a Extend the poll code so that it can periodically scan the host cards
for work regardless of whether there was an interrupt.  This needs more
work, it should be able to run better when there are more than 3 host
cards present, ie: all cards in polling-only mode with no IRQ.  (The
host cards have a choice of 3 irq's, 11, 12, or 15, or just polling)
1996-08-12 17:12:07 +00:00
peter
ff06bda463 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
jfieber
3941e61b52 &ero; -> &amp; 1996-08-12 16:07:50 +00:00
peter
63c88e9c80 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
peter
2d89633b49 clear sockaddr_in's on stack before use
set sin_len
close one ftp port bounce attack
have rresvport() use bindresvport() rather than duplicate the code,
  rresvport() is a superset of bindresvport().

Obtained from: OpenBSD / Jason Downs / Theo de Raadt, minor tweaks by me.
1996-08-12 14:14:09 +00:00
peter
26016a2945 Use the more robust and more efficient reserved port allocation mechanism
now built into bind(2).

Obtained from: OpenBSD / Jason Downs / Theo de Raadt
1996-08-12 14:09:46 +00:00