darrenr
d3fd83d6ba
change s_port to ntohs(s_port) for printf in DEBUG.
1998-01-11 06:03:35 +00:00
alex
3b5bff74db
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
alex
7ebcb78d09
Added environment parameter to execle calls.
...
Obtained from: NetBSD PR2737 (augustss@cs.chalmers.se ) via OpenBSD
1998-01-08 20:05:45 +00:00
alex
35f59936c3
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
alex
4ff390e719
Correct a comment from my last commit.
1998-01-08 02:23:59 +00:00
alex
52c4bf5ce3
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
alex
0ff0dd536e
Format mismatch in error message.
...
Submitted by: bde
1998-01-08 00:27:31 +00:00
charnier
7eea80697a
Remove more unused #includes.
...
Obtained from: Bruce.
1998-01-07 07:55:26 +00:00
alex
c2173ecb3e
Support listing/showing specific rules supplied on the command line.
...
Use error codes from <sysexits.h>.
1998-01-07 02:23:04 +00:00
alex
4e04c4e039
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
charnier
c6e2331082
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
charnier
25019d11da
Sync. usage string and synopsis. Add rcsid.
1998-01-05 07:10:42 +00:00
charnier
ab4d8c6e9c
Add -v in usage string. Add rcsid.
1998-01-05 07:07:44 +00:00
steve
1d1ac83093
The default dumplevel is 0.
...
PR: 5413
Submitted by: NOKUBI Hirotaka <hnokubi@yyy.or.jp>
1998-01-03 20:26:15 +00:00
brian
635f0bdee3
Correct -r and -f descriptions.
...
Suggested by: joerg
1998-01-03 10:11:38 +00:00
alex
47c4182543
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
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