Philippe Charnier
fbb3447f9c
Remove unused #include. Add usage().
1998-07-06 07:06:15 +00:00
Philippe Charnier
23b5892f5e
Correct use of .Nm. Spelling. Add rcsid, remove unused #includes, use err(3).
1998-07-06 07:04:50 +00:00
Philippe Charnier
b50d7fae67
Add rcsid. remove unused #includes. Getopt returns -1 not EOF. Add usage().
...
Cosmetics in err(3) string.
1998-07-06 07:02:26 +00:00
Philippe Charnier
063bb8badc
Lowercase 1st char. in err(3) strings.
1998-07-06 06:59:52 +00:00
Philippe Charnier
614a54ebb0
remoce unused #include.
1998-07-06 06:58:32 +00:00
Philippe Charnier
5df42cf4ae
Correct .Nm use. Add rcsid. Use min for minutes instead of mn.
1998-07-06 06:56:08 +00:00
Philippe Charnier
e333b9445f
Update man page to allow adding address_family when -l is used (this is a no op
...
for now). Correct use of .Nm. Short usage string (see man page for full list).
Spelling. Use err(3).
1998-07-06 06:53:43 +00:00
Philippe Charnier
d98b16689b
Correct use of .Nm, use .Bx Free for FreeBSD. Add rcsid, remove unused
...
#includes. Spelling. Use err(3) and add usage().
1998-07-06 06:44:36 +00:00
Julian Elischer
f9e354df42
Support for IPFW based transparent forwarding.
...
Any packet that can be matched by a ipfw rule can be redirected
transparently to another port or machine. Redirection to another port
mostly makes sense with tcp, where a session can be set up
between a proxy and an unsuspecting client. Redirection to another machine
requires that the other machine also be expecting to receive the forwarded
packets, as their headers will not have been modified.
/sbin/ipfw must be recompiled!!!
Reviewed by: Peter Wemm <peter@freebsd.org>
Submitted by: Chrisy Luke <chrisy@flix.net>
1998-07-06 03:20:19 +00:00
Brian Somers
357f172839
Make things clearer.
...
Submitted (some time ago) by: Ted Mittelstaedt <tedm@portsoft.com>
1998-07-04 12:07:03 +00:00
Brian Somers
622366b81d
Suggest port 8668 rather than 6668 for natd.
...
6668 is IRC.
1998-07-04 01:53:54 +00:00
Philippe Charnier
61d20ca30f
Add rcsid. Remove unused #includes. Use err(3) and check spelling. Reorganize
...
man page.
1998-06-30 06:28:18 +00:00
Philippe Charnier
750f6fe391
Split usage string.
1998-06-30 06:23:42 +00:00
Philippe Charnier
eec2e675fc
Document -r flag, document use of TAPE env variable. Add rcsid. Use err(3).
...
Remove unused vars (-Wall).
1998-06-30 06:22:08 +00:00
Philippe Charnier
c27b7bad4a
Do not dot terminate SEE ALSO list. Add rcsid, remove unused #includes. Err(3)
...
messages should start with a lowercase letter.
1998-06-30 06:18:44 +00:00
Philippe Charnier
9f597f59d5
Add SYNOPSIS section and change NULL to NUL in man page. Add rcsid, missing
...
#includes. Use err(3).
1998-06-30 06:12:44 +00:00
Philippe Charnier
d286dcb026
Add rcsid. Remove unused #includes. Use err(3).
1998-06-30 06:09:37 +00:00
Bruce Evans
c2deb6082e
Don't assume that time_t is long.
1998-06-29 17:54:29 +00:00
Joseph Koshy
a34f78d134
Fix bogon in man page. "-o conn" actually turns off NFSMNT_NOCONN as it is
...
a "negative" option. This makes it equivalent to /not/ specifying "-c".
The compile time default is /not/ to have the NFSMNT_NOCONN flag set, so
"-o conn" should never be needed---truly a deprecated option :-).
PR: 6905.
1998-06-29 06:58:46 +00:00
Bruce Evans
ba198492ad
Fixed printf format errors.
1998-06-28 20:48:03 +00:00
Bruce Evans
318f0106d9
Fixed printf format errors.
1998-06-28 20:42:49 +00:00
Bruce Evans
00e0c280db
Fixed printf format errors, scanf format errors and scanf error handling.
1998-06-28 20:40:51 +00:00
Bruce Evans
836b4a7ff9
Fixed printf format errors.
1998-06-28 20:33:36 +00:00
Bruce Evans
7fafc6f67c
Fixed printf format errors. Sure is dusty here.
1998-06-28 20:25:59 +00:00
Bruce Evans
ca46ad5f48
Fixed printf format errors.
1998-06-28 20:11:23 +00:00
Bruce Evans
ce79296f87
Fixed printf format errors.
1998-06-28 19:45:13 +00:00
Bruce Evans
7abda51bbc
Fixed printf format errors.
1998-06-28 19:36:49 +00:00
Bruce Evans
b10466261e
Fixed printf format errors.
1998-06-28 19:23:03 +00:00
Bruce Evans
ba31b45080
Fixed printf format errors.
1998-06-28 19:06:17 +00:00
Bruce Evans
2a1deaaa04
Fixed printf format errors.
1998-06-28 18:59:04 +00:00
Bruce Evans
58f6798697
Fixed printf format errors.
1998-06-28 18:34:01 +00:00
Bill Paul
021e3d59aa
A long time ago I hacked mountd so that it would deal intelligently
...
with export lines where the same hostname was specified more than once
(this happens a lot with netgroups sometimes). Recently I discovered
that it needs to be hacked to deal with multiple instances of the
same IP address too.
I've been using this modification locally for several months with no
hassles.
1998-06-25 21:26:06 +00:00
Joseph Koshy
6ebaa024df
Fixes per PR 2850:
...
(a) Note that the default securelevel value is -1, in -current and -stable.
(b) Mention kernel sysctl variable that controls securelevel.
(c) Add warning the `fsck' will fail if securelevel >= 2.
(d) Suggest end of /etc/rc as the right place to raise securelevel.
and one spelling fix.
PR: 2850
1998-06-19 08:34:52 +00:00
Joseph Koshy
d00b8231bd
Remove reference to non-existent htable(8).
...
PR: 6940
1998-06-17 13:13:41 +00:00
Joerg Wunsch
01d48801bc
Oops, the previous commit missed one line of code.
1998-06-15 15:43:13 +00:00
Joerg Wunsch
9d70a1569c
Watch out for null hostnames in netgroup entries, to avoid dumping core.
...
This happens if someone tries to export to a netgroup like:
mygroup (,,mynisdomain)
1998-06-15 15:41:41 +00:00
Philippe Charnier
0227048a1f
Correct use of .Nm. Use .Bl/.El for enumerating options. Use .An. Correct
...
formatting of rcsid. Remove unused #includes. Do not use memory after
freeing it.
1998-06-15 07:12:20 +00:00
Philippe Charnier
2d34272b7b
Correct use of .Nm. Add rcsid. Remove unused #includes. Use err(3).
1998-06-15 07:07:21 +00:00
Philippe Charnier
8f034b11f2
Capitalize at the start of sentence. Add rcsid. Remove unused #includes.
...
Use `dumpon' instead of argv[0].
1998-06-15 07:03:47 +00:00
Philippe Charnier
074fad210f
Add rcsid. Remove unused #includes.
1998-06-15 07:00:01 +00:00
Philippe Charnier
7580ffbbbd
Correct use of .Nm. Add rcsid. Remove unused #includes.
1998-06-15 06:58:13 +00:00
Peter Wemm
bf0b255967
Force -DFREEBSD_AOUT incase ldconfig is being compiled under elf.
...
Without this, <link.h> defines stuff for elf linking which is not
what ldconfig needs.
1998-06-12 10:43:18 +00:00
Bruce Evans
677b9b3f7c
Print the write counts if they are nonzero even if we're mounted
...
readonly, since they tell us about previous write activity.
Use the correct format to print the write counts.
1998-06-08 14:08:54 +00:00
Philippe Charnier
65b4c10030
Add rcsid, remove unused #includes. Use err(3).
1998-06-08 06:44:05 +00:00
Philippe Charnier
3121d4cbe0
Use warnx()+fprintf() to handle multi-line messages. Correct K&R support and
...
KNF continuation indent rule.
Requested by: Bruce.
1998-06-08 06:41:47 +00:00
Daniel O'Callaghan
20d3783ac9
Fix typo: exit -> exist
1998-06-08 02:00:45 +00:00
Peter Hawkins
ce4a641c8b
PR: docs/3636
...
Submitted by: Gary Palmer gpalmer@FreeBSD.ORG
Add mention of the 1024-character line length limit on the netgroup database.
1998-06-07 15:08:50 +00:00
John Birrell
fa05a94c42
Fix an alignment problem on alpha by doing a bytewise copy.
1998-06-06 23:33:28 +00:00
Julian Elischer
c2a239ebc7
Reviewed by: Kirk Mckusick (mckusick@mckusick.com)
...
Submitted by: luoqi Chen
fix a type in fsck.
(also add a comment that got picked up by mistake but is worth adding)
1998-06-05 23:33:26 +00:00
Steve Price
8588641614
Fix a spelling error.
...
PR: 6857
Submitted by: Josh Gilliam <josh@quick.net>
1998-06-04 21:09:08 +00:00
Philippe Charnier
970cd28246
Use .Pa for filenames. Use .Bl/.El in FILES section. Remove unused #includes.
1998-06-04 06:51:14 +00:00
Philippe Charnier
6bd343a92d
Add section number to .Xr. Use of .Nm. Typo. Add rcsid. Remove unused
...
#includes. Use err(3).
1998-06-04 06:49:13 +00:00
Philippe Charnier
ec74b3f3ea
Correct .Nm. Spelling. Add rcsid, remove unused #includes. Add usage(). Do not
...
dot-terminate errx() strings.
1998-06-04 06:44:18 +00:00
Philippe Charnier
9ad54eb7b3
Correct use of .Nm, use .Bl/.El in FILES section. Add rcsid. Remove unused
...
#includes and make it a little more -Wall-friendly.
1998-06-04 06:41:26 +00:00
Philippe Charnier
437e1c4474
Correct use of .Nm. Add section number to .Xr. Add rcsid, usage(). Use err(3).
1998-06-04 06:38:03 +00:00
Philippe Charnier
f9184dd719
Correct use of .Nm. Add missing .El. Add rcsid. Remove unused #include.
1998-06-04 06:35:12 +00:00
Joseph Koshy
9595a75afa
Spelling corrections.
...
PR: 6829
Submitted by: Josh Gilliam <josh@quick.net>
1998-06-03 04:21:41 +00:00
Joseph Koshy
5caffabdc3
Correct typo.
...
PR: 6844
Submitted by: Adrian Filipi-Martin <adrian@ubergeeks.com>
1998-06-03 03:59:00 +00:00
Peter Wemm
aa9ba0d726
SUBDIR += ldconfig
1998-06-01 14:12:48 +00:00
Peter Wemm
af6b4e9098
Build ldconfig in /sbin environment directly, rather than under the gnu ld
...
directory. The rcs files were repository copied.
1998-06-01 13:58:19 +00:00
Bruce Evans
5a3e77d851
Fixed overflow in the calculation of the number of inodes per group
...
for filesystems with almost the maximum number of sectors. The maxiumum
is 2^31, but overflow is common for that size, and overflow normally
occurred here at size (2^31 - 4096).
1998-05-31 12:21:50 +00:00
Joseph Koshy
d2d38aa2d7
Use the correct macro for file names. Remove empty `HISTORY' section.
...
PR: 6780
Submitted by: Yoshishige Arai <ryo2@on.rim.or.jp>
1998-05-29 10:15:28 +00:00
Joseph Koshy
e44af4db8d
Correct manual page, based on feedback from Bruce Evans.
...
Reviewed by: Bruce Evans <bde@freebsd.org>
1998-05-27 11:05:59 +00:00
Søren Schmidt
cabb97dcbf
ELF preparation step 2:
...
Move a.out libraries to /usr/lib/aout to make space for ELF libs.
Make rtld usr /usr/lib/aout as default library path.
Make ldconfig reject /usr/lib as an a.out library path.
Fix various Makefiles for LIBDIR!=/usr/lib breakage.
This will after a make world & reboot give a system that no
longer uses /usr/lib/*, infact one could remove all the old
libraries there, they are not used anymore.
We are getting close to an ELF make world, but I'll let this
all settle for a week or two...
1998-05-26 20:12:56 +00:00
Bill Fenner
039d6aa45a
Use select() timeouts instead of SIGALRM to schedule packet transmission.
...
Fixes bin/6649 and removes the last abusive signal handler.
Use SO_TIMESTAMP to get the kernel to timestamp packets on reception.
Fixes bin/5658 and provides slightly better accuracy.
Explicitly zero and terminate the IP options when using -R.
PR: bin/5658
PR: bin/6649
1998-05-25 20:16:05 +00:00
Joseph Koshy
bb556bcf30
Manual page fix: add cross references, refer to ``dumpdev'' variable in
...
"/etc/rc.conf".
PR: 6117
Submitted by: Mark Mayo <mark@vmunix.com>
1998-05-25 08:54:40 +00:00
Steve Price
dd033c223d
Revert the previous fix. As it turns out Warner Losh is
...
working a better fix.
1998-05-25 06:53:17 +00:00
Steve Price
a39f52db0f
Attempt to stop another DoS attack related to ping flooding.
...
PR: 6649
Submitted by: Jason Young <doogie@forbidden-donut.anet-stl.com>
1998-05-25 03:50:51 +00:00
James Raynard
4b3b45a7a2
Fix typo in prompt.
1998-05-20 22:23:16 +00:00
Daniel O'Callaghan
dcf2c48fc9
Reminded by: Alex Nash
...
Bring man page up to date with -q flag behaviour.
1998-05-19 12:50:35 +00:00
Poul-Henning Kamp
58067a9909
Make the size of the msgbuf (dmesg) a "normal" option.
1998-05-19 08:58:53 +00:00
Peter Wemm
c92e3fa533
Support changing the attribute cache limits per-mount. We don't have
...
many option letters left, I used long names only (like the previous
port= option)
1998-05-19 07:18:28 +00:00
Masafumi Max NAKANE
432a1104b6
Typo fix.
1998-05-19 03:10:14 +00:00
John Birrell
ce27694fab
Make this safe for an alpha build, leaving out just about everything
...
that has some sort of kernel issue associated with it.
1998-05-18 04:46:29 +00:00
Dmitrij Tejblum
0580d32288
Remove extraneous ")" from output.
1998-05-17 21:57:17 +00:00
Bill Fenner
4a3bf3b27c
Turn on TCP_NODELAY on the remote socket, to turn off sender silly window
...
syndrome avoidance. The combination of SWS avoidance and ack-every-other
causes low throughput if the block size divided by the MSS is odd (which
is true with the default block size and MSS).
Turning on TCP_NODELAY disables the Nagle algorithm and sender SWS avoidance.
The rdump request/response protocol can not invoke Nagle and cannot cause
SWS, so this has no negative effects.
1998-05-17 06:39:38 +00:00
John Birrell
d32ff0376f
When a timeval is stored at the beginning of icmp_data, the fields
...
are unaligned for access by the alpha, so copy the value to a variable
that is aligned.
When checking the returned data, be careful to avoid confusing the
size of the icmp header with the size of a timeval. On i386 these
are both 8, but on alpha, a timeval is 16 bytes. This means that
a packet sent from an alpha contains 48 bytes of data, not 56 like
on i386.
1998-05-16 00:19:27 +00:00
Daniel O'Callaghan
0eaa45335d
PR: 6641
...
Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
Make -q work for zeroing a specific rule.
1998-05-15 12:38:07 +00:00
Poul-Henning Kamp
777558c3ce
The SYNOPSYS of mount_umap(8) says
...
mount_umap [-o options] target mount-point uid-mapfile gid-mapfile
This should read
mount_umap [-o options] -u uid-mapfile -g gid-mapfile target mount-point
PR: 6586
Reviewed by: phk
Submitted by: Amakawa Shuhei amakawa@hoh.t.u-tokyo.ac.jp
1998-05-13 08:02:50 +00:00
Poul-Henning Kamp
bc345ec5bf
The description of the format of the id mapfile is wrong. You have
...
to write an original-id and a local-id in the other way around.
PR: 6593
Reviewed by: phk
Submitted by: Amakawa Shuhei <amakawa@hoh.t.u-tokyo.ac.jp>
1998-05-13 08:01:00 +00:00
Peter Wemm
428fb2dd11
Fix PR 1607, hopefully without breaking the PR 5208 fixes.
...
umount() was trying to stat() the mountpoint, this would fail if the
mountpoint was a NFS mountpoint, and the fallback code would try and pass
a hostname:/dir path as the mountpoint to unmount(2), which would fail.
This whole stat() of the name supplied on the command line business is
trouble as it'll wedge on a hung NFS mount.
I'm not entirely sure why we are not simply looking up both arguments
in the mount table and doing the right thing without accessing the
filesystem. It seems that we're going to a lot of trouble to allow
mountpoints on symlinks and other wierd things.
PR: 1607
1998-05-11 07:38:42 +00:00
Steve Price
f135a2b210
Fix minor typo.
...
PR: 6571
Submitted by: Stephen J. Roznowski <sjr@home.net>
1998-05-10 16:35:31 +00:00
Jordan K. Hubbard
2640840497
Well, nobody objected, so here's my -u (unlink) flag to restore.
1998-05-09 05:23:02 +00:00
Philippe Charnier
59edad7a5c
Add usage() and rcsid. Getopt() returns -1 not EOF. Remove unused #includes.
...
Use .An/.Aq in man page.
1998-05-05 06:24:15 +00:00
Peter Wemm
e2b2b07689
Mention the 2GB NFS v2 filesize limit.
...
PR: 6335
Submitted by: tom@sdf.com
1998-05-01 13:52:17 +00:00
Peter Wemm
732aba2af7
Don't give examples or use the depreciated usage to nfsd
...
PR: 5635
1998-05-01 13:45:04 +00:00
Poul-Henning Kamp
862a7e9c36
say a few words about the -b option.
...
Reviewed by: Bill Trost <trost@cloud.rain.com>
1998-04-26 18:15:38 +00:00
Poul-Henning Kamp
e72f5a72fd
Add warning about root-fs blocksize expectations.
...
PR: 4485
Reviewed by: phk
Submitted by: Kees Jan Koster <kjk1@ukc.ac.uk>
1998-04-26 17:44:23 +00:00
Poul-Henning Kamp
4419bba9fb
When ipfw reads its rules from an input file, the optind variable is
...
not reinitialized to 1 after calling getopt. This results in parsing
errors on all but the first rule. An added patch also allows '#'
comments at the end of a line.
PR: 6379
Reviewed by: phk
Submitted by: Neal Fachan <kneel@ishiboo.com>
1998-04-22 06:20:20 +00:00
Robert Nordier
25ab4f55c1
Check bytes read to prevent random error message.
1998-04-20 14:09:40 +00:00
Poul-Henning Kamp
0a61a2c2ce
Problem whith "subnet=" statement in /etc/gateways.
...
routed discards the first character of the network address.
Example: "subnet=10.0.0.0/24,1"
The network address is interpreted as 0.0.0.0/24,1.
PR: 4825
Reviewed by: phk
Submitted by: Mike E. Matsnev <mike@azog.cs.msu.su>
1998-04-19 17:53:16 +00:00
Brian Somers
635225ca84
Fix incorrect flag spec
...
PR: 6339 (part of)
Submitted by: Chris Dillon <cdillon@wolves.k12.mo.us>
1998-04-18 10:05:38 +00:00
Poul-Henning Kamp
416aa49b70
If ping write fails with short packet count, the
...
error message prints the two numbers backwards.
PR: 6313
Reviewed by: phk
Submitted by: Archie Cobbs
1998-04-15 19:55:14 +00:00
Poul-Henning Kamp
dfed2de6cc
Remove these copies, they now live the right place.
1998-04-12 10:45:11 +00:00
Poul-Henning Kamp
707194943c
Change noc-tun to nos-tun after Peter did the repository copy to cover
...
up the tracks of my blunder.
1998-04-12 10:44:24 +00:00
Andrey A. Chernov
84436e33cb
Implement Helbig idea of offset calculation reducing mktime() calls
...
Immediately exit if /etc/wall_cmos_clock not present
1998-04-11 21:18:55 +00:00
Poul-Henning Kamp
2d84ac5722
Add noc-tun to list
1998-04-11 20:03:05 +00:00
Poul-Henning Kamp
e66dbdb6c0
Program which implements "nos" alias "ka9q" alias "IP-IP" tunnels.
...
PR: 1154
Reviewed by: phk
Manpage by: phk
Submitted by: Nickolay N. Dudorov nnd@itfs.nsk.su
1998-04-11 19:33:06 +00:00
Wolfram Schneider
5ddc8ded1d
New mount option nosymfollow. If enabled, the kernel lookup()
...
function will not follow symbolic links on the mounted
file system and return EACCES (Permission denied).
1998-04-08 18:31:59 +00:00
Martin Cracauer
d6b37778e9
(evil) hackers -> crackers
1998-04-08 12:00:48 +00:00
Bruce Evans
33e6082253
Guess the position of the drive number in the device name better so
...
that `fsck -p' doesn't check multiple slices on the same drive
concurrently. Don't invoke undefined behaviour when searching for
the drive number in strange device names.
PR: 6129
Reviewed by: phk
Submitted by: Yuichi MATSUTAKA <matutaka@osa.att.ne.jp>, but rewritten
by me.
1998-04-07 12:43:57 +00:00
Warner Losh
47b630b949
Add aback in a line a accidentally killed in my last commit.
...
Submitted by: Bill Fenner
1998-04-02 04:33:18 +00:00
Eivind Eklund
3aa4b74433
Make this compile (and seemingly work).
1998-04-02 01:12:55 +00:00
Warner Losh
c03e877a88
A fairly rare possible buffer overflow:
...
Theo fixed this and tqbf reported it
Obtained from: OpenBSD
1998-04-01 00:32:18 +00:00
Poul-Henning Kamp
90455566ee
Pickup _time_second instead of _time
1998-03-30 10:10:29 +00:00
Andrey A. Chernov
20344e1582
Add workaround suggestion for 'nonexistent time' diagnostic
1998-03-30 09:29:47 +00:00
David E. O'Brien
680426be8f
Add NTFS partition type.
...
Add "." at the end of some sentances.
Also print "flag 80" in English.
Give hint that "sysid" for FreeBSD is 165 decimal.
Ensure active partition specified by user is 1-4.
1998-03-29 23:41:51 +00:00
Peter Wemm
1cd2698705
Don't print the 'writes: sync & async' stuff if we're mounted readonly
...
or if the fs isn't keeping the stats..
1998-03-27 10:52:13 +00:00
Jordan K. Hubbard
b535f1bace
The logic in tape.c:getfile() doesn't allow for a filesystem
...
with a blocksize smaller than the tape block size. The problem
seems to be most easily fixed by changeing where fssize is set.
PR: 5704
Submitted by: David Malone <dwmalone@maths.tcd.ie>
1998-03-23 23:19:14 +00:00
Philippe Charnier
f12a14713b
.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.
1998-03-23 08:31:20 +00:00
Daniel O'Callaghan
048362aaa8
PR: 6104
...
Submitted by: Anatoly Vorobey <mellon@pobox.com>
Fix typo
1998-03-23 06:36:57 +00:00
Peter Wemm
5021f7402d
Initial bmake scaffolding for ipfilter userland stuff.
...
Obtained from: large chunks stolen from OpenBSD and NetBSD
1998-03-21 13:53:18 +00:00
Eivind Eklund
83e6569390
Make 'ifconfig -l ether' only list Ethernet interfaces. This is
...
useful, intuitive, and match the old comments in the source.
Previously, 'ifconfig -l ether' and 'ifconfig -l' were equal.
1998-03-19 20:58:45 +00:00
Philippe Charnier
db439b3aaa
Use .An/.Aq.
1998-03-19 07:47:10 +00:00
Philippe Charnier
68085a0ef1
.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.
1998-03-19 07:46:04 +00:00
Andrey A. Chernov
26555b64bc
Add more DOS/Win95 partition types
1998-03-14 21:22:09 +00:00
John Birrell
5c931089a9
Some things only work on i386.
1998-03-13 19:41:06 +00:00
Alexander Langer
585054bfa6
Get the arguments to show_usage right (like the MFC'ed code in -stable).
...
Submitted by: bde
1998-03-13 02:31:21 +00:00
Andreas Klemm
dc3b98df0e
set timeout to 4 hours, large disks take a long time to low level format.
1998-03-09 21:54:20 +00:00
John Polstra
fbc4f4fd31
Fix a type mismatch between a scanf format string and the
...
corresponding argument.
1998-03-08 23:57:00 +00:00
Steve Price
227776616a
Make this compile again.
...
PR: 5948
Submitted by: Brian Feldman
1998-03-08 19:03:05 +00:00
Mike Smith
95f37fa61f
If we are mounting the root filesystem, and we're accessing it through
...
something that might refer to the compatability slice rather than the
correct slice entry, try all the possible slice entries first.
This is a compatability hack to deal with the case where the kernel has
correctly mounted the root filesystem out of its slice, but the user
has not updated their /etc/fstab file to reflect this. A diagnostic
is emitted if the mount succeeds, indicating that the file should be
updated.
This is a prelude to fixing the kernel to behave as alluded to above.
Reviewed by: (discussed with) julian, phk
1998-03-08 14:50:04 +00:00
Julian Elischer
b1897c197c
Reviewed by: dyson@freebsd.org (john Dyson), dg@root.com (david greenman)
...
Submitted by: Kirk McKusick (mcKusick@mckusick.com )
Obtained from: WHistle development tree
1998-03-08 09:59:44 +00:00
Andrey A. Chernov
8a9f6ff89d
Oops, merge back 32bit fat description from -stable.
...
It was added to -stable but not to -current, strange.
1998-03-07 22:00:31 +00:00
Andrey A. Chernov
56b19102ab
Add primary fat-32
1998-03-07 08:45:46 +00:00
Poul-Henning Kamp
c5d3d7fd74
If numdirs is zero, print a helpful message instead of divding by zero later.
1998-03-04 18:03:54 +00:00
James Raynard
39034633c8
Don't assume sigset_t and int are equivalent.
1998-03-02 23:19:29 +00:00
Joerg Wunsch
2c122f3b6a
Andreas Klemm reported that 2 hours are too few to format a 9 GB
...
Barracuda. Bump the timeout to 3 hours.
1998-03-01 20:15:00 +00:00
Andrey A. Chernov
1cca86f4e8
Add more info about special characters in dos2unix/unix2dos tables
1998-03-01 08:41:05 +00:00
Andrey A. Chernov
57394688f8
Minimize clock drift between getting and setting time
...
Submitted by: bde
1998-02-25 09:40:21 +00:00
Bruce Evans
abfb53239c
Fixed annoying warning for unused sccsid.
1998-02-24 01:36:58 +00:00
Andrey A. Chernov
cd913a5dca
Add more info about -W option
1998-02-23 17:29:08 +00:00
Andrey A. Chernov
28847281dd
Note that default local charset assumed as ISO 8859-1
1998-02-23 17:20:07 +00:00
Andrey A. Chernov
9934eb16d3
Implement loadable DOS<->local conversion tables for DOS names
...
Additionly load toupper table to create DOS names always in uppercase
1998-02-23 16:49:16 +00:00
Andrey A. Chernov
2183143825
Implement loadable upper->lower local conversion table
...
Recently introduced -w renamed to -W
1998-02-23 09:41:02 +00:00
Andrey A. Chernov
c4040ee87d
Add missing DESTDIR
1998-02-23 09:15:01 +00:00
Andrey A. Chernov
4e3e206ed7
Add loadable local<->Unicode conversion support for Win95 names
...
Note: DOS names still not work and require similar changes
1998-02-22 15:28:06 +00:00
John Birrell
d371a23e0b
Remove the casts on signal() returns and compare the returned value
...
with SIG_ERR to detect the error case.
Suggested by: bde.
1998-02-20 07:28:50 +00:00
Jordan K. Hubbard
a92aaa1aa0
Support for FAT32 partitions.
...
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
Obtained from: NetBSD
1998-02-18 09:30:31 +00:00
Bruce Evans
f1d7b4203c
Converted putfsent() to Lite2 mount interface - don't use numeric
...
filesystem types.
1998-02-13 04:54:27 +00:00
Alexander Langer
ce78a1f6dd
Alter ipfw's behavior with respect to fragmented packets when the packet
...
offset is non-zero:
- Do not match fragmented packets if the rule specifies a port or
TCP flags
- Match fragmented packets if the rule does not specify a port and
TCP flags
Since ipfw cannot examine port numbers or TCP flags for such packets,
it is now illegal to specify the 'frag' option with either ports or
tcpflags. Both kernel and ipfw userland utility will reject rules
containing a combination of these options.
BEWARE: packets that were previously passed may now be rejected, and
vice versa.
Reviewed by: Archie Cobbs <archie@whistle.com>
1998-02-12 00:57:06 +00:00
Mike Smith
0c473d5219
Document the enhanced behaviour of the '-c' flag.
1998-02-10 00:17:44 +00:00
John Hay
3142ca45f1
opt_diagnostic.h isn't needed anymore.
1998-02-06 22:31:14 +00:00
John Hay
1420147475
fsdb and fsck use the ffs code which needs opt_diagnostic.h.
1998-02-05 14:31:05 +00:00
Bruce Evans
82000ec41c
Fixed the previous fix. The original path was annulled when it
...
was a directory, so the error message for attempting to unmount
an unmounted-on directory was more broken than before.
1998-02-03 17:23:26 +00:00
Bruce Evans
743d5543e2
Don't define KERNEL before including <nfs/nfs.h>. It is no longer
...
necessary. This fixes warnings about missing forward declarations
for structs in kernel-only prototypes.
1998-02-01 21:53:19 +00:00
Steve Price
fcc7dccff6
Spell 'implements' correctly.
...
PR: 5614
Submitted by: Dag-Erling Coidan Smorgrav <dag-erli@ifi.uio.no>
1998-02-01 07:03:29 +00:00
Steve Price
84b9f7a718
Revert last commit and SEE ALSO pstat(8) instead.
...
Submitted by: Bruce Evans
1998-02-01 06:46:37 +00:00
Poul-Henning Kamp
6b2c0adbe8
Retire dumplfs, mount_lfs and newlfs
1998-01-30 12:40:57 +00:00
Poul-Henning Kamp
fe3915bd64
Retire dumplfs mount_lfs newlfs
1998-01-30 12:39:18 +00:00
Brian Somers
f7d1db72cf
Make it clear that aliasing is done on the public interface, not
...
the private one.
1998-01-29 00:40:41 +00:00
Steve Price
1717267a28
SEE ALSO swapinfo(8).
...
PR: 5447
Submitted by: Craig Leres <leres@ee.lbl.gov>
1998-01-25 17:28:52 +00:00
John Birrell
155ad7517d
signal() returns an pointer, so must be cast to long, not int before
...
comparing < 0.
1998-01-25 09:16:55 +00:00
John Birrell
e3f5655fab
read() and write() return ssize_t not int, so the first arg to atomic()
...
should be ssize_t too.
1998-01-25 09:15:10 +00:00
Bruce Evans
a798ce2eac
Converted to Lite2 mount interface - use vfc_typenum from the
...
already looked up vfsconf struct for nfs instead of MOUNT_NFS.
Removed related FreeBSD ifdefs.
1998-01-20 15:22:27 +00:00
Bruce Evans
87f01287d2
Removed definition of _NEW_VFSCONF. The new vfsconf interface is now
...
the default.
1998-01-20 10:40:18 +00:00
Bruce Evans
bd4f43ff72
mount(8) only uses realpath() for the mountpoint, so don't look up the
...
real path here for the mount device (or path). This fixes difficulties
unmounting devices that are actually symlinks to real devices.
Also, print the original path instead of the real path in early error
messages. nfs path handling and later error messages may still be wrong,
probably only in silly cases where the original path is both a symlink
and a remote path.
PR: 5208
1998-01-19 18:48:36 +00:00
Bruce Evans
90e05a748a
Don't create superblocks with size larger than SBSIZE (8192). The
...
size was rounded up to a multiple of the fragment size, but this
gave invalid file systems when the fragment size was > SBSIZE (fsck
aborts early on them). Now a fragment size of 32768 seems to work
(too-simple tests with fsck and iozone worked).
1998-01-19 16:55:26 +00:00
Bruce Evans
cc52d04f9f
Guard against a block size of 0 in the label. When the first
...
superblock is invalid, fsck looks at the label to help guess where
the next superblock should be. If the partition type is 4.2BSD,
fsck assumed that the block size was valid and divided by it, so
it dumped core if the size was 0.
Initialization of the label was broken almost 3 years ago in rev.1.9
of newfs/newfs.c. Newfs does not change the label at all, so there
is no problem (except the breakage of the automatic search for
backup superblocks) unless something else sets the partition type
to 4.2BSD. However, it is too easy to set partition types to
4.2.BSD by copying an old label or by using a disktab entry to
create the label.
PR: 2537
1998-01-19 16:28:29 +00:00
Bruce Evans
cc03533c8d
Removed most unused includes of <net/if_var.h> outside the kernel.
1998-01-16 17:38:56 +00:00
Bruce Evans
6e1a705dd4
Fixed some spelling errors.
1998-01-16 06:31:23 +00:00
Philippe Charnier
69036300b2
Use err(3). Change exit(-1). Remove unused #include.
1998-01-14 07:17:12 +00:00
Philippe Charnier
6fa99bdbd2
Use err(3). Change exit(-1), and make exit values equal to 1 when errors.
...
Remove unused #includes.
1998-01-12 07:57:57 +00:00
Darren Reed
5905ba8289
change s_port to ntohs(s_port) for printf in DEBUG.
1998-01-11 06:03:35 +00:00
Alexander Langer
f6faa785f2
Pass an actual empty environment to execle() as per POSIX rather than
...
rely on undocumented behavior.
The following fixes were obtained from OpenBSD:
o -Wall fixes to tlist array initialization and assignment used
as truth value.
o Use a restricted environment.
o Improved error message when shutdown fails to exec reboot or halt.
1998-01-10 20:11:06 +00:00
Alexander Langer
42f9a8963d
Added environment parameter to execle calls.
...
Obtained from: NetBSD PR2737 (augustss@cs.chalmers.se ) via OpenBSD
1998-01-08 20:05:45 +00:00
Alexander Langer
1c910ddbf9
Bump up packet and byte counters to 64-bit unsigned ints. As a
...
consequence, ipfw's list command now adjusts its output at runtime
based on the largest packet/byte counter values.
NOTE:
o The ipfw struct has changed requiring a recompile of both kernel
and userland ipfw utility.
o This probably should not be brought into 2.2.
PR: 3738
1998-01-08 03:03:54 +00:00
Alexander Langer
7417978572
Correct a comment from my last commit.
1998-01-08 02:23:59 +00:00
Alexander Langer
2dc3422762
Allow 'shutdown datespec' to work into the next century. Handle dates
...
in the 22nd century and beyond even though it's irrelevant with a 32-bit
time_t which expires in the year 2038.
1998-01-08 02:21:30 +00:00
Alexander Langer
00bbf86dd5
Format mismatch in error message.
...
Submitted by: bde
1998-01-08 00:27:31 +00:00
Philippe Charnier
7f6c4bf07d
Remove more unused #includes.
...
Obtained from: Bruce.
1998-01-07 07:55:26 +00:00
Alexander Langer
19b7e28d58
Support listing/showing specific rules supplied on the command line.
...
Use error codes from <sysexits.h>.
1998-01-07 02:23:04 +00:00
Alexander Langer
016d30080f
Display a better error message and use a non-zero exit code when
...
zero/delete operations fail.
PR: 4231
Reviewed by: Archie Cobbs <archie@whistle.com>
1998-01-06 00:11:57 +00:00
Philippe Charnier
2632a83f1e
Add rcsid. Remove uneeded #include. Use fprintf() in usage() instead of err(3)
...
to make it print: usage: progname ...
1998-01-05 07:23:02 +00:00
Philippe Charnier
57e78ffb16
Sync. usage string and synopsis. Add rcsid.
1998-01-05 07:10:42 +00:00
Philippe Charnier
49fea209d4
Add -v in usage string. Add rcsid.
1998-01-05 07:07:44 +00:00
Steve Price
d2daa2c099
The default dumplevel is 0.
...
PR: 5413
Submitted by: NOKUBI Hirotaka <hnokubi@yyy.or.jp>
1998-01-03 20:26:15 +00:00
Brian Somers
fc2c67eac5
Correct -r and -f descriptions.
...
Suggested by: joerg
1998-01-03 10:11:38 +00:00
Alexander Langer
1295abe226
Removed /etc/ld.so.conf reference from FILES section (people get
...
confused when they can't find it), but leave the reference to it
as being a standard filename (which doesn't imply that it exists).
Discussed with: jkh
1998-01-01 02:31:47 +00:00
Warner Losh
15678bfa03
Properly drop group privs to open file names specified by the user.
...
Submitted by: Niall Smart rotel@indigo.ie
Obtained from: OpenBSD (rev 1.7 and 1.8)
1997-12-30 05:13:21 +00:00
Alexander Langer
a228025e10
Added copyright (taken from natd.c).
...
Approved by: Ari Suutari <ari@suutari.iki.fi>
1997-12-30 00:38:56 +00:00
Brian Somers
2267b3199c
Add a "scsi -f /dev/ssc -p" example and xref ssc(4).
...
Make the other examples prettier.
1997-12-29 21:08:33 +00:00
Brian Somers
a7a660bdb8
Mention that the -r flag reprobes the entire bus on which the given
...
device resides and that the -f flag must specify the `whole slice'
if it's a disk.
1997-12-29 15:17:57 +00:00
Steve Price
9a9791af6e
Fix a few style nits from previous commit.
...
Submitted by: Bruce Evans <bde@zeta.org.au>
1997-12-29 14:05:49 +00:00
Philippe Charnier
6ab51a152f
Add missing .Ar.
1997-12-29 07:03:46 +00:00
Steve Price
716847a669
Get md5(1) to use getopt(3). Also some minor -Wall cleaning
...
while here.
PR: 5387
Submitted by: Matthew Hunt <mph@pobox.com>
1997-12-29 03:40:37 +00:00
Alexander Langer
f13f9fada7
Typo/$Id$ police.
1997-12-27 19:31:11 +00:00
Warner Losh
b1a3bc5ea0
style(9) corrections
...
Submitted by: bde
1997-12-26 23:28:17 +00:00
Alexander Langer
33d07164d6
Put the return value of getopt into an int, not a char.
1997-12-26 03:24:26 +00:00
Warner Losh
5635438650
Be extra paranoid about trusting the length of the data returned by
...
gethostbyaddr.
Submitted by: Julian Assange
1997-12-24 01:00:24 +00:00
Warner Losh
006b3faebb
Two fixes:
...
1) Correct strncpy usage
2) gethostbyaddr paranoia from Julian Assange
1997-12-24 00:59:49 +00:00
Warner Losh
b10d9d5f10
Minor style nit noticed by bde.
1997-12-24 00:59:02 +00:00
Warner Losh
164309e22e
Be extra paranoid about trusting the length returned by gethostbyaddr.
...
Submitted by: Julian Assange
1997-12-24 00:58:39 +00:00
Warner Losh
9ae323c5f0
Be extra paranoid about trusting the size of the address returned from
...
gethostbyaddr.
Submitted by: Julian Assange
1997-12-24 00:57:41 +00:00
Eivind Eklund
079e1f7586
Remove unused include files
...
Submitted by: bde
1997-12-22 13:46:08 +00:00
Masafumi Max NAKANE
c456b727db
Typo fix in the message displayed.
1997-12-21 15:40:11 +00:00
Eivind Eklund
82bc2dfa32
Remove unused private header.
...
Submitted by: max
1997-12-21 15:35:22 +00:00
Eivind Eklund
3690cf7295
Remove unused private include files from slattach.
...
Submitted by: bde
1997-12-21 13:42:27 +00:00
Bruce Evans
db398a8bd4
Fixed overflow in chkrange(). Some out of bounds block numbers,
...
e.g. -1, were not detected. Use a bulletproof check that doesn't
depend on special properties of the args or the limit.
PR: 3528
1997-12-21 00:00:44 +00:00
Bruce Evans
ccc3fadfd5
Fixed style bugs in the printing of statistics after preening. Use
...
floating point better in the percentage calculation there to avoid
overflow when there are more than about 20 million fragments. Start
using floating point in the other percentage calculation to avoid
overflow when there are more than about 2 million fragments.
Fixed printf format strings.
Converted sccsid to rcsid.
1997-12-20 22:24:32 +00:00
Bruce Evans
2d187af5d6
Don't attempt to print the statistics for a "clean" preened filesystem
...
when there isn't even a filesystem. Attempting to print them tended
to cause SIGSEGV or SIGFPE depending on how far setup() got before it
returned 0. This was broken in the previous revision by removing a
return statement that the previous case depended on falling into.
PR: 4840 (fixed by this commit)
PR: 2537 (possibly fixed by Lite2 merge and later changes. setup()
does more checking now)
1997-12-20 21:36:58 +00:00
Bruce Evans
2f5275d0c8
Fixed some FUD (don't blame current msdosfs for old msdosfs+vfs_bio bugs).
1997-12-19 23:03:00 +00:00
Brian Somers
867ca4ed97
The ``super scsi'' device is /dev/scc.
...
I'm not sure it's fully functional though !
1997-12-19 14:14:26 +00:00
Bruce Evans
5ce43a5e9b
Install sysctl in /sbin. It is used in some cases in network_pass1(),
...
before /usr is mounted if /usr has type nfs.
1997-12-18 15:34:08 +00:00
Bruce Evans
e3d099c303
Fixed DPADD.
1997-12-16 15:03:14 +00:00
Guido van Rooij
f2c90b9538
Oops..The default behaviour should be *not* to log all succeeded
...
requests. If you want this extra loggin, add the -l option.
1997-12-13 19:50:14 +00:00
Guido van Rooij
690c488d0a
Fix some style bugs.
...
Submitted by: bruce
1997-12-10 20:33:59 +00:00
Brian Somers
67a886fb97
natd 1_10 => 1_11
...
Cosmetic style changes
Use u_short for port values.
Submitted by: Ari Suutari <ari@suutari.iki.fi>
1997-12-10 02:14:57 +00:00
Guido van Rooij
f51631d732
Log all failed mount attempts.
...
Also add a flag (-l) so mountd will also log all succeeded requests
to mountd.
1997-12-09 18:43:44 +00:00
Brian Somers
27c20503c6
Reverse my previous change and use htons() on an int
...
instead of htonl() !
This results in the int a,b,c,d changing to b,a,c,d,
but as it's subsequently coerced to a u_short, the
ultimate answer is correct.
If this isn't fixed properly soon (by the author) I'll
have a look at it again.
Noted by: eivind & ari@suutari.iki.fi
1997-12-06 12:00:32 +00:00
Julian Elischer
c7a0bf0440
Allow ipfw to accept comments and blank lines.
...
This makes ipfw config files a LOT more readable.
1997-12-05 02:43:26 +00:00
Steve Price
8546f807e0
Add mount_devfs(8) to the SEE ALSO section.
...
PR: 5125
1997-12-01 00:44:16 +00:00
David E. O'Brien
e83b2033a7
Fix syntax error for the mount_mfs example.
...
Also update to a more realistic example.
1997-11-24 03:28:54 +00:00
John Polstra
14b94d0464
Add missing argument detected by "-Wformat".
1997-11-18 03:37:45 +00:00
John Polstra
a960972dd0
Fix missing arguments detected by "-Wformat".
1997-11-18 03:22:08 +00:00
John Polstra
3e83b874e1
Fix two missing arguments detected by "-Wformat".
1997-11-18 03:14:53 +00:00
Brian Somers
5ae6fac1d7
Use htonl() rather than htons().
1997-11-13 11:43:02 +00:00
Julian Elischer
52bf64c787
Reviewed by: hackers@freebsd.org in general
...
Obtained from: Whistle Communications tree
Add an option to the way UFS works dependent on the SUID bit of directories
This changes makes things a whole lot simpler on systems running as
fileservers for PCs and MACS. to enable the new code you must
1/ enable option SUIDDIR on the kernel.
2/ mount the filesystem with option suiddir.
hopefully this makes it difficult enough for people to
do this accidentally.
see the new chmod(2) man page for detailed info.
1997-11-13 00:28:51 +00:00
Steve Price
0f30219fa8
Fix a misleading comment.
...
PR: bin/4861
Submitted by: Alex <garbanzo@hooked.net>
1997-10-27 03:28:44 +00:00
John-Mark Gurney
b2289ae063
use += on cflags
...
Submitted-by: Steve Price <sprice@hiwaay.net>
1997-10-26 04:58:27 +00:00
Mark Murray
76a54b1979
Make this part of the 'krb' distribution if it is being built as the
...
Kerberised version.
1997-10-24 16:22:46 +00:00
Mark Murray
6adb44d7f0
Make this part of the 'krb' distribution.
1997-10-24 16:20:25 +00:00
John-Mark Gurney
60add4e38d
fix mispelling of kld
1997-10-24 05:30:12 +00:00
John-Mark Gurney
2830148a29
a few code style changes:
...
o start function names in column 1
o sort order of flags in getopt and switch
o don't try to reference progname
o unspam some changes introduced by a 2.2.1-R build box instead of a
-current build box
doc changes:
o document when these commands first appeared
o put email address in angle brakets
o minor mdoc clean up
1997-10-21 09:59:26 +00:00
Bruce Evans
b493c70c4f
Don't install mount_msdos setuid root. Lite2's mount(2) handles
...
permissions centrally and a setuid root mount utility just breaks
its security. There was no new breakage in practice because
mfdosfs_mount() still checks the ruid.
1997-10-21 07:26:50 +00:00
Philippe Charnier
d9b1bc7779
Use err(3). Change err(-1,... to err(1,...
1997-10-20 12:53:54 +00:00
Joerg Wunsch
cc75b131a6
Introduce a -N option that disables the use of reserved ports, now
...
that -P is on by default. Remove do-nothing code in the -P case (but
leave the option itself for backward compatibility).
PR: bin/4500
1997-10-19 16:40:01 +00:00
John-Mark Gurney
23e200d5ab
activate the programs that will be used to manipulate kld modules
...
fix a few problems with missing headers, warn called with an exit
value, and undeclared getopt vars
these programs now compile -Wall clean (and yes, I know I should use
more than just -Wall) :)
1997-10-19 11:15:45 +00:00
Joerg Wunsch
59dcbbb234
Fix the man page description about what will go into an incremental
...
backup.
PR: docs/4785
Submitted by: Matthew Dillon
1997-10-19 09:43:08 +00:00
Brian Somers
10cffc50d2
Add -redirect_port and -redirect_address to the
...
synopsis.
1997-10-18 16:31:28 +00:00
Peter Wemm
41cd75b799
Make the supported media info output the default.
...
The -m switch is now accepted for backwards compatability.
Suggested by: davidg
1997-10-16 03:55:29 +00:00
Masafumi Max NAKANE
47fa2a53b5
Remove Xref to format(8) which does not exist.
1997-10-15 17:33:47 +00:00
Joerg Wunsch
d6038ed629
Do not account the tape change time for ETA estimations.
...
PR: bin/4369
Submitted by: blank@fox.uni-trier.de (Sascha Blank)
1997-10-12 14:09:13 +00:00
Joerg Wunsch
b394198484
The unit for the B option is 1 KB, not `dump records'.
...
PR: docs/4223
1997-10-12 13:10:26 +00:00
Joerg Wunsch
33262b2341
Enable spppcontrol.
1997-10-11 11:34:00 +00:00
Joerg Wunsch
bb37355e3c
The spppcontrol(8) utility that is required to set or display things
...
like PAP and CHAP secrets with sppp(4). This is the first utility
using the new SIOC[SG]IFGENERIC ioctls (and the reason for inventing
them in the first place).
1997-10-11 11:30:30 +00:00
Peter Wemm
1bc5fcd008
This has always bugged me. At single user, the implied example it gives
...
is not valid - it says that "sh" is the default, but you can't
actually type "sh" at this prompt - it has to be /bin/sh or some other
full pathname.
1997-10-10 12:14:48 +00:00
Philippe Charnier
0fc81af12d
Use err(3). Change firewall to firewall_enable in man page according to
...
/etc/rc.conf.
1997-10-02 11:43:33 +00:00
Wolfram Schneider
bf5cbf3551
Sort cross refereces in section SEE ALSO.
1997-09-29 19:11:55 +00:00
Mark Murray
f8dd90c3b9
Changes for the new KTH KerberosIV
1997-09-28 08:43:40 +00:00
Mark Murray
81127b1486
Changes for the new KTH KerberosIV.
1997-09-28 08:42:27 +00:00
KATO Takenori
75b714ac11
Add noclusterr and noclusterw options. The noclusterr and noclusterw
...
disable clustered read and write, respectively.
Reviewed by: bde
1997-09-27 13:44:17 +00:00
Peter Wemm
920de53083
Spell out a few things for the media options.
1997-09-27 02:55:39 +00:00
Poul-Henning Kamp
0d150bcf0b
Fix bad assumptions about types.
...
PR: 1649
Reviewed by: phk
Submitted by: Jason Thorpe <thorpej@nas.nasa.gov>
1997-09-18 18:19:45 +00:00
Poul-Henning Kamp
d030d2d2ae
Many places in the code NULL is used in integer context, where
...
plain 0 should be used. This happens to work because we #define
NULL to 0, but is stylistically wrong and can cause problems
for people trying to port bits of code to other environments.
PR: 2752
Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
1997-09-18 14:08:40 +00:00
Philippe Charnier
be9950897a
Typo.
1997-09-18 06:54:03 +00:00
Peter Wemm
079709dc3a
Some tweaks to get this to cope with ELF where the address space starts
...
higher up in memory (0x0800000 upwards) rather than near zero (0x1000
for our qmagic a.out format). The method that mount_mfs uses to allocate
the memory within data size rlimits for the ram disk is entirely too much
of a kludge for my liking. I mean, if it's run as root, surely it makes
sense to just raise the resource limits to infinity or something, and if
it's a non-root user mount (do these work? with mfs?) it could just fail
if it's outside limits.
1997-09-13 11:41:50 +00:00
Jonathan Lemon
a968cfd87c
If a host in an export line in /etc/exports (or within a netgroup on
...
an export line) is unresolvable, make a note of it via syslog and skip
that individual host instead of skipping the entire line.
PR: 1981, 815
Perused by: joerg
1997-09-12 16:25:24 +00:00
Daniel O'Callaghan
6f1edd29a4
Fix typo in comment.
1997-09-12 10:52:49 +00:00
Peter Wemm
ff486369c7
Mention the IPFIREWALL_DEFAULT_TO_ACCEPT option and it's effect on
...
rule 65535
1997-09-10 04:02:37 +00:00
Peter Wemm
875a6115c1
Fix typo (65434 -> 65534)
1997-09-10 03:52:50 +00:00
John-Mark Gurney
1ccbcf70f7
tell dset how to save the pnp info in the kernel...
1997-09-09 12:51:02 +00:00
Brian Somers
f9b06d5cbe
Ingored incoming packets are now dropped when
...
deny_incoming option is set to yes.
Submitted by: Ari Suutari <ari@suutari.iki.fi>
1997-09-06 11:14:03 +00:00
Eivind Eklund
d6b01f404d
Fix my e-mail address. Old work addres is no good.
1997-08-31 16:38:33 +00:00
John-Mark Gurney
46657c7e77
fix a few spelling changes
...
Submitted by: Josh Gilliam
Closes PR's: 4429, 4431-4438
PS: He has agreed to submit all contrib fixes back to the original author.
1997-08-30 12:22:49 +00:00
KATO Takenori
d1d9bf7e77
Added hw.machine_arch.
1997-08-30 02:28:00 +00:00
Guido van Rooij
e90cdb54db
Plug info agthering attack as pointed out on Bugtraq recently.
...
Obtained from: OpenBSD
1997-08-29 19:22:28 +00:00
Warner Losh
c9c3deeddc
.Xr vnconfig 8. This was suggested by Dworkin Muller <dworkin@village.org>
...
when he tried to figure out how to swap to a file and had to ask me for
help.
1997-08-26 00:32:06 +00:00
Bruce Evans
c295350952
Fixed an example.
1997-08-25 21:17:38 +00:00
Bruce Evans
958294d6f6
Removed duplicate MOPT_FORCE and sorted the first one. Rev.1.5 and
...
Lite2 messed up the ordering differently.
1997-08-25 21:14:22 +00:00
Bruce Evans
8e30c09987
Moved getmntops() stuff back to mntopt.h so that it is visible in other
...
mount utilities.
1997-08-25 21:02:21 +00:00
Bruce Evans
fa02b62ae7
Backed out previous commit - don't clobber the (normally equivalent)
...
default for NOSHARED.
1997-08-25 20:38:35 +00:00
Bruce Evans
ba05eddfeb
Support all mount flags that are supported in the kernel.
1997-08-25 20:23:16 +00:00
John-Mark Gurney
0755ef0eea
add Id line (so that the commit on RELENG_2_2 will have it too)
1997-08-25 12:50:01 +00:00
Steve Price
30761f8783
Forgot to cvs add this new file.
1997-08-24 21:28:38 +00:00
Steve Price
fba1c154b2
Try to avoid mounting filesystems multiple times. Also while
...
I'm here do some -Wall cleaning.
PR: kern/1839
Reviewed and corrected by: joerg
1997-08-24 21:02:51 +00:00
Joerg Wunsch
6caa839def
Mention the various reasons for messages of the form:
...
xxxxx filesystem is not available
Inspired by: PR 3311, and a following discussion with Mikhail
1997-08-24 17:51:12 +00:00
Joerg Wunsch
ca4da38dc6
Make it explicit that arguments to -c are in hex, while other numbers are
...
in usual "C" notation.
Also fixed the examples section.
PR: 3313
1997-08-24 08:50:25 +00:00
Steve Price
951122de0a
Always include the section name in the .Xr macro and cleanup
...
.Nm macro usage.
PR: docs/3940
Submitted by: Kazuo Horikawa <k-horik@yk.rim.or.jp>
1997-08-24 02:27:08 +00:00
Steve Price
81eaff0252
Remove the reference to the nonexistant dump(5) manpage.
...
PR: docs/3704
1997-08-23 21:52:47 +00:00
Steve Price
5b9062772d
Protect against target containing a '%' which might be misinterpreted
...
by err(3).
PR: bin/3864
1997-08-23 21:25:24 +00:00
Joerg Wunsch
32c9dffb9d
Make the daemon process a true daemon by calling setsid().
...
PR: bin/3202
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
1997-08-23 14:10:34 +00:00
John-Mark Gurney
71f6084c4a
another -I/sys to -I${.CURDIR}/../../sys
1997-08-22 14:04:09 +00:00
Peter Wemm
d4ba5766dd
Add -R (rescan or refresh) option to rescan and rebuild the hints
...
file based on the previous list of directories stored there which
should overcome a weakness of the '-m' switch which can only add
libs. This is an ideal way of updating the hints list after adding
or removing a shlib since it will remove entries that are gone and
doesn't need to have all the directories spelled out each time.
(eg: rm -f /usr/lib/libtcl75*; ldconfig -R) This only works for
version 2 hints files (which we've been generating for a year or
so) which store the path.
1997-08-22 04:42:12 +00:00
Jonathan Lemon
e816bc9767
Enable simultaneous use of -u and -p options. Release any resources before
...
calling post-processing script.
PR: 2864
Submitted by: Mike Spengler <mks@msc.edu>
1997-08-21 22:33:59 +00:00
Daniel O'Callaghan
39f5ba2def
Bring comment on '-a' flag in line with reality.
1997-08-21 07:30:08 +00:00
Steve Price
cbc0b9d0e4
Fix a typo and while here cleanup the use of the .Nm macro.
...
PR: docs/4339
Submitted by: Matthew Hunt <mph@pobox.com>
1997-08-20 11:40:13 +00:00
David Nugent
80f69e57cd
".if exists(${CURDIR}/../../secure)" rather than testing relative to the
...
object directory.
1997-08-18 03:32:09 +00:00
David Nugent
86bf62dc4a
Test that rc.shutdown exists before attempting to run it - silently
...
return success if it doesn't to prevent any unwanted error msgs.
1997-08-18 01:40:12 +00:00
Bill Fenner
ff49597ed1
Add an ntohs() and format an IP address with inet_ntoa() when
...
printing the details of a received ICMP packet.
PR: bin/3766
Submitted by: denny1@home.com (Denton Gentry)
1997-08-11 04:33:07 +00:00
Brian Somers
fb994b078f
- Buffer space problem found by Sergio Lenzi <lenzi@bsi.com.br>
...
fixed. Natd now waits with select(2) for buffer space
to become available if write fails.
- Packet aliasing library upgraded to 2.2.
Submitted by: Ari Suutari <suutari@iki.fi>
1997-08-10 21:55:52 +00:00
Joerg Wunsch
edb398d7d9
If, in a level N dump, the file with the inode number X is a
...
non-directory file with more than one link to it, but in a level M > N
dump, the file with the inode number X is a plain file, "restore", when
restoring the level M dump, won't remove all the hard links to the old
file.
Submitted by: guy@netapp.com (Guy Harris)
1997-08-10 14:19:13 +00:00
Alexander Langer
750f6aad7b
Support interface names up to 15 characters in length. In order to
...
accommodate the expanded name, the ICMP types bitmap has been
reduced from 256 bits to 32.
A recompile of kernel and user level ipfw is required.
To be merged into 2.2 after a brief period in -current.
PR: bin/4209
Reviewed by: Archie Cobbs <archie@whistle.com>
1997-08-08 14:36:29 +00:00
Julian Elischer
363d7bbe50
don't lose track of how many packets we've sent
...
if we get 'host unreachable'. (or any other errors than ENOBUFS)
makes -c work again even if you can't get there..
This really needs a rework..
1997-08-07 02:41:15 +00:00
Andrey A. Chernov
3ee1f2280e
runshutdown(): get rid of getdtablesize loop, it gains nothing now
...
but can waste time if many descriptors are available
1997-08-06 16:34:51 +00:00
Andrey A. Chernov
25cf4a545a
rc.shutdown fixes:
...
1) revoke -> HUP
2) controlling terminal already present
3) add missing setprocresources call
1997-08-06 16:07:52 +00:00
Bruce Evans
59fe2c14b4
Import Lite2's src/usr.sbin, except for timed. All changed files
...
except one unimportant one have already left the vendor branch.
1997-08-02 19:36:03 +00:00
David Nugent
8889c700f3
Add /etc/rc.shutdown capability to init.
...
Add sample /etc/rc.shutdown (which is just a shell for now).
Submitted by: Ollivier Robert <roberto@keltia.freenix.fr>
1997-08-02 00:22:52 +00:00
Brian Somers
4e1bdb51a7
Allow service names as the divert/tee arg.
1997-07-25 03:13:46 +00:00
Bruce Evans
8f975bb321
Cleaned up revisions 1.22 and 1.23.
...
Fixed minor bugs in revisions 1.12 and 1.23 (variables assigned to in signal
handlers weren't declared as volatile).
1997-07-20 06:09:55 +00:00
Garrett Wollman
3109a91002
Calculate and print out the standard deviation of the round trip times.
...
This isn't necessarily the best statistic, but it is by far the easiest to
calculate. Update the man page to be more explicit about precisely which
statistics are printed out. Revert some of jmg's bogus man page changes from
rev 1.11.
1997-07-18 17:52:05 +00:00
Julian Elischer
a455644f13
Check if routed had the same problems that route(1) had.
...
The answer is not really, but almost.
it sent data that was ok, though it was a hack,
but it was bug-compatible with the kernel on receiving them. This also
had been fixed with a hack.. I hacked it better I think.
1997-07-18 11:08:35 +00:00
Julian Elischer
ba68720f4f
fix what appears to me to be absolutle bogus code
...
to do with netmasks.. we fed totally bogus data into the kernel
to do with default routes and it just believed us. this led to:
1/ kernel panics
2/ the default route refusing to be deleted or added
(depending on a number of factors, usually it worked ok.)
1997-07-18 09:05:12 +00:00
Doug Rabson
cb3923e0ee
Merge WebNFS support from NetBSD.
...
Obtained from: NetBSD
1997-07-16 09:27:53 +00:00
Bruce Evans
28596d2346
Removed "hack to prevent overflow of a 32bit block number". Lite2 has a
...
better hack in ffs_vfsops.c. The hack here restricted the maximum file
size to 2^39 bytes (512GB). fs_bsize * 2^31 - 1 (16TB for the default
blocksize of 8K) would have been better. There is no good way to remove
this limit on old BSD4.4 file systems.
1997-07-13 15:13:07 +00:00
Peter Wemm
65b3003d2d
kill the undead
1997-07-13 14:26:00 +00:00
Sean Eric Fagan
a2a0088805
Fix a problem introduced with a recent change that caused a hang with
...
unreachable hosts. Note that most of this consists of telling SIGINT
and SIGALRM to interrupt the system call, instead of restarting them.
Also try to get rid of some potential races Bruce didn't like; hopefully
they aren't a problem (potential or otherwise) now.
Reviewed by: julian
1997-07-13 06:16:44 +00:00
Jordan K. Hubbard
571b472b20
Allow ldconfig to accept files (containing directory paths) as well as
...
directory paths.
Reviewed by: jkh & jdp
Submitted by: Hans Zuidam <hans@brandinnovators.com>
1997-07-11 14:45:41 +00:00
Julian Elischer
0e59c641dc
don't count packets as being transmitted when we know that the sendto()
...
failed (e.g. ENOBUFS)
1997-07-09 20:33:58 +00:00
Julian Elischer
515dd2fa3f
ping called printf() from a signal handler..
...
this is a NO-NO
re-arange to just set a "please die immediatly" flag in the signal handler
and handle this in the normal thread.
also handle ping -f better on slow links by backing off a bit when
we get a ENOBUFFS from the sendto().
1997-07-09 19:40:43 +00:00
Andrey A. Chernov
3f31fb330d
Move logwtmp(shutdown) call before any real action in death().
1997-07-08 11:51:11 +00:00
Andrey A. Chernov
1054bb1e43
1. Replace malloc+bzero by calloc
...
2. Revoke internal active session list only now, not whole /etc/ttys
1997-07-05 19:36:55 +00:00
Andrey A. Chernov
19e00c1345
Add -D_NEW_VFSCONF to eliminate compilation warning
1997-07-05 19:34:51 +00:00
Bruce Evans
c65c062f59
Document recent changes (config files and -D...) and not so recent changes
...
(bios drive number...).
Submitted by: mostly by yokota
1997-07-05 02:02:02 +00:00
Andrey A. Chernov
c3d7c52e04
death: revoke all lines listed in /etc/ttys instead of sending HUP
...
to all processes
1997-07-04 22:09:07 +00:00
Masafumi Max NAKANE
8c1d6cc7a3
Add Xref to nologin(5).
1997-07-04 06:31:52 +00:00
John Polstra
b7c2b28e0b
Die and stay dead. Ya got it?!
1997-07-04 01:30:09 +00:00
Andrey A. Chernov
423b6a39ff
Include <libutil.h> instead of private declarations
1997-07-03 11:37:43 +00:00
Andrey A. Chernov
a2ee73bcc6
Remove unneded cast in login_getclassbyname which cause warning
1997-07-02 13:53:31 +00:00
Bruce Evans
25e43cba72
Import Lite2's src/sbin, except for XNSrouted and routed. All relevant
...
files in src/sbin are off the vendor branch, so this doesn't change the
active versions.
1997-07-02 00:25:26 +00:00
Bruce Evans
c377df7798
This commit was generated by cvs2svn to compensate for changes in r27163,
...
which included commits to RCS files with non-trunk default branches.
1997-07-02 00:25:26 +00:00
Bruce Evans
7ff7df18ef
Import Lite2's src/sbin, except for XNSrouted and routed. All relevant
...
files in src/sbin are off the vendor branch, so this doesn't change the
active versions.
1997-07-02 00:25:26 +00:00
Philippe Charnier
41e964cb5d
Remove lines inside #ifdef 0/#endif.
1997-06-30 11:10:18 +00:00
Bruce Evans
1dce44f3ea
Configure static linkage in the normal way (default to -static using
...
NOSHARED?= yes).
1997-06-29 21:40:54 +00:00
Bruce Evans
2b7c05c611
Print fs_maxfilesize.
1997-06-29 20:59:03 +00:00
Bruce Evans
2bdcf54dc6
Prepare to remove the declaration of sys_siglist from <unistd.h>.
...
It should only be declared in <signal.h> if at all. Modload used
to depend on getting it from <unistd.h> because it only included
<sys/signal.h>.
1997-06-29 20:38:38 +00:00
Paul Traina
4cbf8903a2
Attempt to open the device for reading before actually adding the device
...
to the session list. If the device comes back as unconfigured, just
ignore that line in /etc/ttys. If someone HUP's init, we'll try again.
This change stops getty's from hanging on vty and sio ports that don't
exist, either due to LKM drivers not being loaded, or probes failing.
Reviewed by: bde
1997-06-28 08:18:29 +00:00
John Hay
0fad62aead
Display tickadj in struct clockinfo.
1997-06-24 18:23:32 +00:00
Brian Somers
46b2c55966
Suggest using /etc/services entry rather than a
...
number in the "ipfw add divert" example.
1997-06-24 10:49:44 +00:00
Tor Egge
dc6f8d1bd5
Allow use of the name "swap" instead of an actual swap device.
...
This makes configuration of mfs /tmp on diskless clients more intuitive
for people like me, that have used this feature on NetBSD and SunOS.
Using the -T option and /dev/null, while already supported,
is neither intuitive nor documented in the handbook.
Obtained from: NetBSD
1997-06-23 22:44:51 +00:00
Julian Elischer
135a88d805
Allow ipfw to look up service names from /etc/services (or NIS if turned on)
...
note.. this would be dangerous if your ipfw was blocking NIS access :)
Submitted by: archie@whistle.com (Archie Cobbs)
1997-06-23 22:32:13 +00:00
Steve Price
681e5e7a09
Show the real revision date and not the date that this
...
manpage is being viewed.
1997-06-23 04:03:49 +00:00
Jordan K. Hubbard
c1b792b226
sysconfig -> rc.conf
1997-06-22 14:40:27 +00:00
Brian Somers
24084f9bfc
Bring natd into main source tree now that the
...
pppd/natd combination works ok.
Submitted by: Ari Suutari <ari.suutari@ps.carel.fi>
1997-06-22 04:19:08 +00:00
Philippe Charnier
210a5dc89f
Sync usage string according to man page.
1997-06-19 14:44:24 +00:00
Philippe Charnier
49d430cc1f
Cosmetic in usage string.
1997-06-19 14:42:10 +00:00
Philippe Charnier
6da7f3783b
Use warn(3).
1997-06-19 14:40:41 +00:00
Philippe Charnier
64c12016e7
Use err(3). Add missing prototypes. Cosmetic in usage string.
1997-06-19 14:38:53 +00:00
Philippe Charnier
ac9df8c8e7
Use err(3). Add usage().
1997-06-19 14:33:42 +00:00
Philippe Charnier
a2bfcdfd76
Use err(3).
1997-06-19 14:28:32 +00:00
Philippe Charnier
b5f058fc9b
Various typos in man page. Cosmetic in usage string. Use err(3) instead
...
of fprintf. Remove unused variables.
1997-06-18 06:37:23 +00:00
Philippe Charnier
768b3fbd57
Sync man page and usage string. Remove unused -p option from getopt call.
1997-06-18 06:34:28 +00:00
Philippe Charnier
7766b145c4
Sync man page and usage string.
1997-06-18 06:33:11 +00:00
Philippe Charnier
eee9b17e46
Sync beetween man page and usage string.
1997-06-18 06:30:34 +00:00
Philippe Charnier
1b6a6c70bb
Fprintf -> warn.
1997-06-18 06:28:46 +00:00
Bruce Evans
d499a0ef65
Merge from Lite2.
...
- use new getvfsbyname() interface.
- new -A option, like -a except only mounted file systems are unmounted.
All non-cosmetic FreeBSD changes in umount.c, except ignoring of
realpath() failures, went away because they are done better in Lite2.
realpath() failures must be ignored so that non-pathnames like
"<above>:/foo" and "host:/bar" get as far as mount(2).
Reviewed by: dfr
1997-06-16 11:20:05 +00:00
Masafumi Max NAKANE
cc40ddd9f1
Typo fix.
...
PR: 3868
Submitted by: Kazuo Horikawa <k-horik@yk.rim.or.jp>
1997-06-16 06:54:30 +00:00
Philippe Charnier
098166ed2d
Use err(3) instead of local copy.
1997-06-16 06:43:13 +00:00
Philippe Charnier
441f92071b
Use err(3) instead of local err() (a errx() like function).
1997-06-16 06:38:14 +00:00
Philippe Charnier
86eaffaf51
Use err(3).
1997-06-16 06:35:23 +00:00
Andrey A. Chernov
545cda7db5
Remove srandomdev fallback
1997-06-14 00:17:53 +00:00
Masafumi Max NAKANE
ac162c8fa6
Typo fix.
...
PR: 3854
Submitted by: Takahiro Yugawa <yugawa@orleans.rim.or.jp>
1997-06-13 20:58:09 +00:00
Philippe Charnier
b2d4098533
Remove __progname. Cosmetic in usage string.
1997-06-13 06:27:12 +00:00
Philippe Charnier
c584283545
Use err(3).
1997-06-13 06:24:42 +00:00
Philippe Charnier
c9ea311a26
Add Id. Staticize usage function. Typo in usage string.
1997-06-11 07:18:18 +00:00
Philippe Charnier
617f1bc8c6
Remove __progname. Make -f a no-op flag as stated in the man page. Remove
...
unused variables.
1997-06-11 07:13:30 +00:00
Philippe Charnier
a1e5f53b8f
Add Id. Cosmetic in usage string.
1997-06-10 11:14:04 +00:00
Philippe Charnier
bef2080a01
Add Id. Use err(3). Costmetic in usage string.
1997-06-10 11:08:53 +00:00
Philippe Charnier
86d025a068
Remove __progname. Cosmetic in usage string.
1997-06-10 11:04:50 +00:00
Philippe Charnier
4cabb4cdcc
Add Id, add usage function.
1997-06-10 11:01:13 +00:00