Commit Graph

696 Commits

Author SHA1 Message Date
bde
348268374e Document that the major and minor numbers are parsed by strtoul(). 1996-07-30 17:44:36 +00:00
bde
2610a106d1 Use strtoul() more carefully.
Check that the major and minor are valid.

Don't print `.' at the end of error messages.

Fixed all warnings from "cc -Wall".
1996-07-30 17:43:21 +00:00
peter
f5dd57b9eb Limit the risk of `buf' overrun in ping.c when printing hostnames.
Note, this is not really a security risk, because the buffer in question
is a static variable in the data segment and not on the stack, and hence
cannot subert the flow of execution in any way.  About the worst case was
that if you pinged a long hostname, ping could coredump.

Pointed out on: bugtraq  (listserv@netspace.org)
1996-07-28 20:29:10 +00:00
joerg
adafacbcb0 Finally use strtoul() to convert the major an minor numbers, so
proper error-checking can be done, and octal and hexadecimal
numbers are allowed.
1996-07-27 17:24:55 +00:00
julian
6841938d0f Submitted by: archie@whistle.com
slight cleanups on yesterday's patches
1996-07-23 22:00:14 +00:00
jkh
49983fbdd6 When running 'rrestore foo', you get a segmentation fault because
the obsolete() function to convert dump-style args to getopt-style
args doesn't check to see that 'f' really has an argument following
the option string in argv[1].

Submitted-By: jmacd
1996-07-23 19:33:44 +00:00
peter
718b6b2f19 mount_ext2fs somehow got a stray mntopts.h, which was out of sync with
the real ../mount/getmntopts.c and ../mount/mntopts.h
Closes PR#1419

Submitted by: rhh@stealth.ct.picker.com (Randall Hopper)
1996-07-23 19:29:27 +00:00
julian
e5e06da05a Submitted by: archie@whistle.com
appletalk cleanups
1996-07-23 01:18:47 +00:00
jkh
145ba163a3 I have added a new option -p to the mount command. This was
inspired by SunOS version of mount which uses option -p to
indicate that the mount information should be printed in fstab
format.
This is a neat way to create a new fstab file to use later when
one has modified the mount points or mount options or added or
removed mount some mount points. You just type

	mount -p > /etc/fstab.new

and there is your new fstab file ready to be used though you
will of course have to add any necessary noauto flags manually.

[Committers note:  This also seems to do the wrong thing for AMD
 mounts, but in the more average case this is a nifty feature nonetheless
 and one can always edit the bogus entries out]

Submitted-By: Jukka Ukkonen <jau@jau.csc.fi>
1996-07-21 23:34:04 +00:00
alex
616a04e507 Grammar fix described by wollman in response to PR 1363. 1996-07-14 17:51:08 +00:00
jkh
97de575586 General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
1996-07-12 19:08:36 +00:00
julian
6778941636 Adding changes to ipfw and the kernel to support ip packet diversion..
This stuff should not be too destructive if the IPDIVERT is not compiled in..
 be aware that this changes the size of the ip_fw struct
so ipfw needs to be recompiled to use it.. more changes coming to clean this up.
1996-07-10 19:44:30 +00:00
nate
9f897b15f2 Now that we have a manpage, don't have the 'clean' target be a NO-OP. 1996-07-10 18:36:41 +00:00
julian
8c2c8bc29e changes to allow route to manipulate appletalk routes. 1996-07-09 19:02:28 +00:00
julian
4be7c44d4c Submitted by: Archie@whistle.com
Obtained from: Whistle Communications
patches to allow ifconfig to work with appletalk addresses etc.
1996-07-09 02:38:13 +00:00
julian
45eaf3a91b oops, make the magic number match that used in the bootblock..
I guess we should have a single place for this??
1996-07-09 02:10:16 +00:00
julian
1bca11fb5a Obtained from: Whistle Communications
control program to control the facility of the bootblocks
to fetch a default bootstring from a fixed location on the disk.

See the manpage for more info.
1996-07-09 02:04:32 +00:00
wosch
e114824086 Document that suid wrapper like suidperl(1) break option 'nosuid'. 1996-07-02 23:18:38 +00:00
alex
60f36531ca Correct definition of 'established' keyword. 1996-07-02 00:29:22 +00:00
alex
48e77be56d Formatting fixes for 'in' and 'out' while listing.
Prevent ALL protocol from being used with port specifications.

Allow 'via' keyword at any point in the options list.  Disallow
multiple 'via' specifications.
1996-06-29 01:28:19 +00:00
alex
f6373b99fb Fix port specification syntax.
Submitted by:	nate
1996-06-29 01:21:07 +00:00
alex
339c2c9f8d Fix address mask calculation when using ':' syntax. Allow a mask
of /0 to have the desired effect.  Normalize IP addresses that
won't match a given mask (i.e. 1.2.3.4/24 becomes 1.2.3.0/24).
Submitted by R. Bezuidenhout <rbezuide@mikom.csir.co.za>

Code formatting and "frag" display fixes.
1996-06-23 20:47:51 +00:00
peter
2d3b4c2842 Fix a couple of bogus casts to off_t that caused dumpfs to lseek negative
on filesystems > 2GB (which causes the disk slice code to call Debugger!!)
1996-06-23 00:05:04 +00:00
alex
91b13927bd Code clean up. Prototypes, parentheses around assignments used in
if statements, #if 0 some unused code, use off_t in calls to read/
write_disk, fix a printf format, remove unused variables, and
#include necessary files.
1996-06-21 02:39:19 +00:00
alex
4674754eec Add #include <err.h>. 1996-06-19 01:49:01 +00:00
alex
45f4495aad Set the program name before trying to use it.
Found by: Aage Robekk <aagero@aage.priv.no>
1996-06-18 01:46:34 +00:00
bde
2c595a15c0 Moved initialization of defaults for the label for the whole disk from
disklabel(8) to the kernel (dsopen()).  Drivers should initialize the
hardware values (rpm, interleave, skews).  Drivers currently don't do
this, but it usually doesn't matter since rotational position stuff is
normally disabled.
1996-06-17 14:43:54 +00:00
alex
ce32ab6c9b Fix a typo in the view accounting records example. 1996-06-15 23:01:44 +00:00
alex
6e2846f8c9 Bring the man page more into line with reality. 1996-06-15 01:38:51 +00:00
asami
44a0d9b11d Our kernel is not called /netbsd. ;)
Submitted by:	"Philippe Charnier" <charnier@lirmm.fr>
1996-06-14 10:51:47 +00:00
alex
7dddaa5e75 Big sweep over ipfw, picking up where Poul left off:
- Filter based on ICMP types.
  - Accept interface wildcards (e.g. ppp*).
  - Resolve service names with the -N option.
  - Accept host names in 'from' and 'to' specifications
  - Display chain entry time stamps with the -t option.
  - Added URG to tcpflags.
  - Print usage if an unknown tcpflag is used.
  - Ability to zero individual accounting entries.
  - Clarify usage of port ranges.
  - Misc code cleanup.

Closes PRs: 1193, 1220, and 1266.
1996-06-09 23:46:22 +00:00
ache
d8442a61a3 Return make_union, s-bit removed 1996-05-19 17:24:10 +00:00
pst
98ef61b0f1 Disable setuid permission for mount_union(1).
This covers the security problem descibed in SA-96:10 and Jeff says that
when we upgrade to Lite2 (which fixes this problem), mount no longer needs
to be setuid, so we'll never be going back.

Submitted by:	hsu
Reviewed by:    pst
1996-05-17 22:46:01 +00:00
jkh
b7108c2d35 Large security hole in mount_union, the underlying filesystem for which doesn't
even work.  Until pst wakes up, best action deemed to be the simple disabling
of this command.
1996-05-17 08:48:50 +00:00
wollman
6993917031 Accept mount(8)'s calling convention of passing just the filesystem type
as argv[0].
1996-05-14 15:16:49 +00:00
wollman
82145cd79a One program I missed in removing MOUNT_* constants. 1996-05-13 17:56:34 +00:00
wollman
8531aa13ac Get rid of the last vestiges of the old MOUNT_* constants in the
mount_* programs.  While we're at it, collapse the four now-identical
mount programs for devfs, fdesc, kernfs, and procfs into links to
a new mount_std(8) which can mount any really generic filesystem
such as these when called with the appropriate argv[0].

Also, convert the mount programs to use sysexits.h.
1996-05-13 17:43:19 +00:00
jkh
4fee73a7df Document LFS as broken. 1996-05-12 11:12:17 +00:00
phk
457d46f306 Some cosmetics and some better error-checking.
Reviewed by:	phk
Submitted by:	"Daniel O'Callaghan" <danny@panda.hilink.com.au>
Submitted by:	Archie Cobbs <archie@whistle.com>
1996-05-11 20:31:55 +00:00
nate
3656a84dbf From: Terry Lambert <terry@lambert.org>
Subject: Fix for annoying fsck bug
Date: Wed, 24 Jan 1996 13:33:29 -0700 (MST)

The following small diff fixes the annoying fsck bug that causes it to
need to be run twice to end up with correct reference counts for inodes
for directories that had subdirectories relocated into the lost+found
directory.

I found the need to rerun *extremely* annoying.  This fix causes the
count to be correctly adjusted later in pass 4 by correctly stating
the parent reference count.

Note that the parent reference count is incremented when the directory
entry is made (for ".."), but is not really there in the case of a
directory that does not make an entry in its parent dir.

This can be tested by waiting for the inode sync after cd'ing from a
shell into a test fs.  Then you "mkdir xxx yyy zzz", wait a second,
and hit the machine reset button.

Reviewed by:	nate (Tested lots of crashes :)
Submitted by:	Terry Lambert <terry@lambert.org>
1996-05-09 16:38:27 +00:00
wollman
1f792828ed Update route(8) to print out current meanings of rt_flags RTF_* bits. 1996-05-08 20:48:59 +00:00
asami
298006d865 Connect ccd man page and ccdconfig to parent Makefiles.
Ok'd by:	peter
1996-05-04 08:30:22 +00:00
markm
6eee7b4f63 Better method of choosing libdescrypt/libscrypt. 1996-05-04 08:16:20 +00:00
markm
1dec21f5b8 Split CRYPTOBJDIR -> SCRYPTOBJDIR/DESCRYPTOBJDIR for init(8) 1996-05-04 08:11:47 +00:00
joerg
13575ce50d Stupid bug, the default man page goes to section 1, not 8.
Closes PR #misc/1172: Error in sbin/dset/Makefile

Submitted by:	masafumi@tky007.tth.expo96.ad.jp (Masafumi NAKANE)
1996-05-03 18:09:06 +00:00
mpp
bc100ca046 Specify FreeBSd on the .Os line, since this is a FreeBSD-specific
program.  Use the .Fx (FreeBSD) macro in the HISTORY section.
1996-05-02 22:34:19 +00:00
joerg
295426f547 Oops, forgot to `cvs add' this one first... 1996-05-02 21:47:45 +00:00
joerg
0067e451b7 Add a man page. 1996-05-02 21:42:18 +00:00
phk
59a63fa06a NBPG -> getpagesize() 1996-05-02 09:09:04 +00:00
bde
f2a7970da5 Default to udp if neither udp nor tcp is specified. The previous revision
was broken.  It forced udp in all cases except the extremely unusual case
argc == 0.
1996-05-01 03:13:45 +00:00