Commit Graph

1159 Commits

Author SHA1 Message Date
steve
69a40ed21c The default dumplevel is 0.
PR:		5413
Submitted by:	NOKUBI Hirotaka <hnokubi@yyy.or.jp>
1998-01-03 20:26:15 +00:00
brian
c8f4fd0071 Correct -r and -f descriptions.
Suggested by: joerg
1998-01-03 10:11:38 +00:00
alex
497c80cacc 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
imp
7bf3c399fe 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
alex
fd91daf261 Added copyright (taken from natd.c).
Approved by:	Ari Suutari <ari@suutari.iki.fi>
1997-12-30 00:38:56 +00:00
brian
b05332bc2c 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
3e372f26da 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
a3386636c9 Fix a few style nits from previous commit.
Submitted by:	Bruce Evans <bde@zeta.org.au>
1997-12-29 14:05:49 +00:00
charnier
a152a3b0cd Add missing .Ar. 1997-12-29 07:03:46 +00:00
steve
85b6210946 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
alex
2cb70c5418 Typo/$Id$ police. 1997-12-27 19:31:11 +00:00
imp
87cc203a85 style(9) corrections
Submitted by:	bde
1997-12-26 23:28:17 +00:00
alex
11c077cd6c Put the return value of getopt into an int, not a char. 1997-12-26 03:24:26 +00:00
imp
5a5c36145e 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
imp
05aeca504f Two fixes:
1) Correct strncpy usage
	2) gethostbyaddr paranoia from Julian Assange
1997-12-24 00:59:49 +00:00
imp
690fb81274 Minor style nit noticed by bde. 1997-12-24 00:59:02 +00:00
imp
801c7fa509 Be extra paranoid about trusting the length returned by gethostbyaddr.
Submitted by:	Julian Assange
1997-12-24 00:58:39 +00:00
imp
9da44f935a 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
af172b7132 Remove unused include files
Submitted by:	bde
1997-12-22 13:46:08 +00:00
max
74869ee6f3 Typo fix in the message displayed. 1997-12-21 15:40:11 +00:00
eivind
89ba4f88ae Remove unused private header.
Submitted by:	max
1997-12-21 15:35:22 +00:00
eivind
03bd828027 Remove unused private include files from slattach.
Submitted by:	bde
1997-12-21 13:42:27 +00:00
bde
dd1b31cdcc 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
bde
a2c9611de4 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
bde
639b3cc8a1 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
bde
1dfa2f9cb0 Fixed some FUD (don't blame current msdosfs for old msdosfs+vfs_bio bugs). 1997-12-19 23:03:00 +00:00
brian
1d2050e093 The ``super scsi'' device is /dev/scc.
I'm not sure it's fully functional though !
1997-12-19 14:14:26 +00:00
bde
25a4d2f91e 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
bde
dca2f080ae Fixed DPADD. 1997-12-16 15:03:14 +00:00
guido
740bfe740c 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
56668f863e Fix some style bugs.
Submitted by:	bruce
1997-12-10 20:33:59 +00:00
brian
f3ea7367b7 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
b094630dba 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
66c99fc075 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
58b0902d34 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
bc4d4db97d Add mount_devfs(8) to the SEE ALSO section.
PR:		5125
1997-12-01 00:44:16 +00:00
obrien
f8d4bb5856 Fix syntax error for the mount_mfs example.
Also update to a more realistic example.
1997-11-24 03:28:54 +00:00
jdp
e2d907a81b Add missing argument detected by "-Wformat". 1997-11-18 03:37:45 +00:00
jdp
d10d8918e9 Fix missing arguments detected by "-Wformat". 1997-11-18 03:22:08 +00:00
jdp
744091d21b Fix two missing arguments detected by "-Wformat". 1997-11-18 03:14:53 +00:00
brian
46c0598ada Use htonl() rather than htons(). 1997-11-13 11:43:02 +00:00
julian
857944f486 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
f6709cc8e4 Fix a misleading comment.
PR:		bin/4861
Submitted by:	Alex <garbanzo@hooked.net>
1997-10-27 03:28:44 +00:00
jmg
a5c0a30a8b use += on cflags
Submitted-by:	Steve Price <sprice@hiwaay.net>
1997-10-26 04:58:27 +00:00
markm
988cc4a41e Make this part of the 'krb' distribution if it is being built as the
Kerberised version.
1997-10-24 16:22:46 +00:00
markm
bc6beed611 Make this part of the 'krb' distribution. 1997-10-24 16:20:25 +00:00
jmg
0b468414c8 fix mispelling of kld 1997-10-24 05:30:12 +00:00
jmg
74a9b83647 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
bde
f552c8432d 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
charnier
f6e0080970 Use err(3). Change err(-1,... to err(1,... 1997-10-20 12:53:54 +00:00