imp
a1d9242a63
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
3314e9bde1
Added copyright (taken from natd.c).
...
Approved by: Ari Suutari <ari@suutari.iki.fi>
1997-12-30 00:38:56 +00:00
brian
c38e16bb3b
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
1c3e16c0fc
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
6f5cdf1a51
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
ab8e3efb1c
Add missing .Ar.
1997-12-29 07:03:46 +00:00
steve
2d5f5de492
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
c74dfe8f29
Typo/$Id$ police.
1997-12-27 19:31:11 +00:00
imp
ec6e7a3cf8
style(9) corrections
...
Submitted by: bde
1997-12-26 23:28:17 +00:00
alex
367097735d
Put the return value of getopt into an int, not a char.
1997-12-26 03:24:26 +00:00
imp
e1ae752d33
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
03672be414
Two fixes:
...
1) Correct strncpy usage
2) gethostbyaddr paranoia from Julian Assange
1997-12-24 00:59:49 +00:00
imp
d2e80bb3ce
Minor style nit noticed by bde.
1997-12-24 00:59:02 +00:00
imp
6356793b99
Be extra paranoid about trusting the length returned by gethostbyaddr.
...
Submitted by: Julian Assange
1997-12-24 00:58:39 +00:00
imp
fb787b8d6a
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
6db96c372e
Remove unused include files
...
Submitted by: bde
1997-12-22 13:46:08 +00:00
max
eea70ed327
Typo fix in the message displayed.
1997-12-21 15:40:11 +00:00
eivind
a391c8a70f
Remove unused private header.
...
Submitted by: max
1997-12-21 15:35:22 +00:00
eivind
69e3c44260
Remove unused private include files from slattach.
...
Submitted by: bde
1997-12-21 13:42:27 +00:00
bde
efbb6fdc12
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
4c386d1f18
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
65928cad92
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
1dee0886bd
Fixed some FUD (don't blame current msdosfs for old msdosfs+vfs_bio bugs).
1997-12-19 23:03:00 +00:00
brian
9564a08fa8
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
aa2bd98249
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
65cee4a218
Fixed DPADD.
1997-12-16 15:03:14 +00:00
guido
7f8db0dd29
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
db8034d25a
Fix some style bugs.
...
Submitted by: bruce
1997-12-10 20:33:59 +00:00
brian
57e11ec3f7
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
9c59d252fe
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
5bdfd46476
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
e434f4878b
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
28bedd3f26
Add mount_devfs(8) to the SEE ALSO section.
...
PR: 5125
1997-12-01 00:44:16 +00:00
obrien
221e1cee66
Fix syntax error for the mount_mfs example.
...
Also update to a more realistic example.
1997-11-24 03:28:54 +00:00
jdp
8a7bf8aff1
Add missing argument detected by "-Wformat".
1997-11-18 03:37:45 +00:00
jdp
92e669ae40
Fix missing arguments detected by "-Wformat".
1997-11-18 03:22:08 +00:00
jdp
fcde3651a7
Fix two missing arguments detected by "-Wformat".
1997-11-18 03:14:53 +00:00
brian
bfb6fd490e
Use htonl() rather than htons().
1997-11-13 11:43:02 +00:00
julian
c931d11d3f
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
668d29bd1f
Fix a misleading comment.
...
PR: bin/4861
Submitted by: Alex <garbanzo@hooked.net>
1997-10-27 03:28:44 +00:00
jmg
e38809b8d9
use += on cflags
...
Submitted-by: Steve Price <sprice@hiwaay.net>
1997-10-26 04:58:27 +00:00
markm
f784e3f832
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
6e219dba6a
Make this part of the 'krb' distribution.
1997-10-24 16:20:25 +00:00
jmg
83ab22e89f
fix mispelling of kld
1997-10-24 05:30:12 +00:00
jmg
b389f452d8
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
1c795f36be
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
a9b89e1f31
Use err(3). Change err(-1,... to err(1,...
1997-10-20 12:53:54 +00:00
joerg
3f21e439b0
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
jmg
075da1dbb9
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
048018209a
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
044c4aaa12
Add -redirect_port and -redirect_address to the
...
synopsis.
1997-10-18 16:31:28 +00:00
peter
12c811026a
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
max
fe54436c76
Remove Xref to format(8) which does not exist.
1997-10-15 17:33:47 +00:00
joerg
0e8a4e7303
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
238c0273fe
The unit for the B option is 1 KB, not `dump records'.
...
PR: docs/4223
1997-10-12 13:10:26 +00:00
joerg
49ed9fdc0d
Enable spppcontrol.
1997-10-11 11:34:00 +00:00
joerg
506d512fe9
This commit was generated by cvs2svn to compensate for changes in r30302,
...
which included commits to RCS files with non-trunk default branches.
1997-10-11 11:30:30 +00:00
joerg
f865af2794
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
0e8d0ba0f2
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
charnier
473db3cc32
Use err(3). Change firewall to firewall_enable in man page according to
...
/etc/rc.conf.
1997-10-02 11:43:33 +00:00
wosch
8ee659dd96
Sort cross refereces in section SEE ALSO.
1997-09-29 19:11:55 +00:00
markm
818c4db845
Changes for the new KTH KerberosIV
1997-09-28 08:43:40 +00:00
markm
ebebdc212c
Changes for the new KTH KerberosIV.
1997-09-28 08:42:27 +00:00
kato
54f0e5ef9d
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
8161901df7
Spell out a few things for the media options.
1997-09-27 02:55:39 +00:00
phk
17787f4779
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
phk
d8ac409160
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
charnier
335b8fc3ac
Typo.
1997-09-18 06:54:03 +00:00
peter
763b84b296
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
jlemon
551d6af699
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
danny
bd7f6921c9
Fix typo in comment.
1997-09-12 10:52:49 +00:00
peter
821f87d72d
Mention the IPFIREWALL_DEFAULT_TO_ACCEPT option and it's effect on
...
rule 65535
1997-09-10 04:02:37 +00:00
peter
f8ab40fb46
Fix typo (65434 -> 65534)
1997-09-10 03:52:50 +00:00
jmg
e7c02f7386
tell dset how to save the pnp info in the kernel...
1997-09-09 12:51:02 +00:00
brian
9d4f19ab22
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
80ebcd3b3f
Fix my e-mail address. Old work addres is no good.
1997-08-31 16:38:33 +00:00
jmg
416e9a71f9
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
09489fa1b7
Added hw.machine_arch.
1997-08-30 02:28:00 +00:00
guido
175058b2d1
Plug info agthering attack as pointed out on Bugtraq recently.
...
Obtained from: OpenBSD
1997-08-29 19:22:28 +00:00
imp
015fbf2e02
.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
bde
36cc99f070
Fixed an example.
1997-08-25 21:17:38 +00:00
bde
f258578729
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
bde
6702cebfd7
Moved getmntops() stuff back to mntopt.h so that it is visible in other
...
mount utilities.
1997-08-25 21:02:21 +00:00
bde
8b18fb0873
Backed out previous commit - don't clobber the (normally equivalent)
...
default for NOSHARED.
1997-08-25 20:38:35 +00:00
bde
e79f489cc2
Support all mount flags that are supported in the kernel.
1997-08-25 20:23:16 +00:00
jmg
6fb08f0a27
add Id line (so that the commit on RELENG_2_2 will have it too)
1997-08-25 12:50:01 +00:00
steve
bbf38e6e36
Forgot to cvs add this new file.
1997-08-24 21:28:38 +00:00
steve
99d48d545a
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
a90ba4da61
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
1bb3924f27
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
4da10b0de0
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
3c2efe40ee
Remove the reference to the nonexistant dump(5) manpage.
...
PR: docs/3704
1997-08-23 21:52:47 +00:00
steve
7215a486c3
Protect against target containing a '%' which might be misinterpreted
...
by err(3).
PR: bin/3864
1997-08-23 21:25:24 +00:00
joerg
68fb49d725
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
jmg
1597b02260
another -I/sys to -I${.CURDIR}/../../sys
1997-08-22 14:04:09 +00:00
peter
0c770f97ec
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
jlemon
e9d26b3a32
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
danny
dfd8a56d45
Bring comment on '-a' flag in line with reality.
1997-08-21 07:30:08 +00:00
steve
293e77181e
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
davidn
faf85e7cf0
".if exists(${CURDIR}/../../secure)" rather than testing relative to the
...
object directory.
1997-08-18 03:32:09 +00:00