Peter Wemm
b94d6bf4d7
Update to compile under Lite2
1997-03-11 12:38:16 +00:00
Peter Wemm
c06fe0a05e
Merge from Lite2
...
- use new getvfsbyname() interface and mount(2) interface
**DANGER WILL ROBINSON!!** You must be running a -current kernel
from within a week or so in order for this to work!
1997-03-11 12:28:00 +00:00
Peter Wemm
e7b6972097
Compile under Lite2 (unistd.h has proto for getopt)
1997-03-11 12:24:00 +00:00
Peter Wemm
b4f70931e0
Compile under Lite2 (getopt() is in unistd.h etc)
1997-03-11 12:23:09 +00:00
Peter Wemm
780a5c1ec1
Merge from Lite2. Note that Lite2 has it's own filesystem clean check
...
skipping code that overrides ours sooner. One should be eliminated,
but for now it works.
1997-03-11 12:20:21 +00:00
Peter Wemm
82b49328cd
Merge from Lite2 (does not work though)
1997-03-11 12:14:07 +00:00
Peter Wemm
9d1741b9da
Merge from Lite2
1997-03-11 12:12:26 +00:00
Peter Wemm
a37c38b8d8
Merge Lite2 changes (rather bigish, the dump/restore folks should check)
1997-03-11 12:09:50 +00:00
Peter Wemm
33aa65742b
Disable two newly broken dirs:
...
fsdb (too intimate with old fsck, needs work)
newlfs (doesn't build since Lite2 lfs wasn't merged into kernel)
1997-03-11 12:06:41 +00:00
Peter Wemm
39e5614a71
This commit was generated by cvs2svn to compensate for changes in r23669,
...
which included commits to RCS files with non-trunk default branches.
1997-03-11 11:59:39 +00:00
Peter Wemm
1811bdf372
Import some CSRG 4.4BSD-Lite2 components for sbin onto vendor branch.
...
(note that some of these have already been imported, this is a no-op)
1997-03-11 11:59:39 +00:00
Bruce Evans
92e2d9bed5
Attempt to import Lite2's mount.
1997-03-05 17:51:21 +00:00
Bruce Evans
2822751af3
This commit was generated by cvs2svn to compensate for changes in r23412,
...
which included commits to RCS files with non-trunk default branches.
1997-03-05 17:51:21 +00:00
Bruce Evans
a92d3ad246
Attempt to import Lite2's mount.
1997-03-05 17:51:21 +00:00
Bruce Evans
423f22330a
Force null termination after 2 errant strncpy()s.
1997-03-05 12:08:44 +00:00
Warner Losh
624ff93821
Fix typo introduced in 1.17.
...
Submitted by: "Philippe Charnier" <charnier@xp11.frmug.org>
1997-03-04 22:05:49 +00:00
Bruce Evans
8f86703906
Updated mount_msdos to use the Lite2 getvfsbyname() interface.
1997-03-03 13:23:54 +00:00
Warner Losh
1ffae4a6dd
Check the size of the IP address reutrned from gethostbyname2, per PR
...
2578 from Julian A. Likely not strictly needed, but it doesn't hurt
and protects ping against possible buffer overflows if the resolver
were to return large IP addresses.
1997-03-03 09:50:21 +00:00
Mike Pritchard
940783df47
An odd merge from 2.2 to -current. Somehow that 2.2 nologin.5
...
man page was in better shape than the 3.0-current version,
so I'm committing the 2.2 version to 3.0. Whatever happened,
it was my fault :-).
1997-03-03 06:47:27 +00:00
John-Mark Gurney
50ceac8822
fix man page to use marcos instead of parens, quotes and braces
...
plus other minor fixes
1997-03-02 23:38:05 +00:00
John-Mark Gurney
f22592e760
mdoc'ify man page
1997-03-02 21:43:10 +00:00
Warner Losh
ee2bf73496
1) Minor nits in the usage message from bde. I took out the hard tabs and
...
used spaces to align the second line under the program name.
2) Cache uid after call to setuid(getuid()) so we don't waste a system call
for each packet with a call to getuid for the -v case.
3) Update manual to reflect new restriction on -l from last delta.
Suggested by: bde, Bill Fenner
1997-03-02 20:01:13 +00:00
Joerg Wunsch
06996f8920
Avoid the ``Three seconds until format begins'' construct. It's
...
inconsistent with the remaining unix utilities, so replace it by
something better suited.
Learned from: The Unix Hater's Handbook :-)
1997-03-02 11:21:07 +00:00
Warner Losh
f78ac61b3a
1) Fix usage to match convention and manual. Fix manual to match usage.
...
2) Must be root to run preload (OpenBSD ping.c 1.8)
3) Don't print all replies unless verbose and root (from idea in
OpenBSD ping.c 1.10 and 1.11) to avoid leaking information available
only to root.
4) Remove unused h: from option string to getopt.
5) Make the compiler happy with exit(0) (Lite-2?)
Reviewed by: Dan Cross <tenser@spitfire.ecsel.psu.edu>
Good candidate for 2.2 and 2.1 (as are many of the 1.17 changes).
1997-03-02 06:32:42 +00:00
Garrett Wollman
43470e3be8
Make ping -Wall clean (except for one warning).
...
Do a better job of argument parsing.
Don't permit ping -f to a multicast address (very antisocial).
Don't permit -L, -I, -T options with unicast addresses.
Ensure that we ask for only AF_INET addresses (should close PR#2584).
Return <sysexits.h> error codes for failures. Document this.
Fix man page to identify the author and put sections in correct order.
1997-03-01 20:19:18 +00:00
Warner Losh
a1d72e7cac
Fix a minor problem with restore from tapes from big endian machines.
...
This finishes the closing of PR2446 which J"org Wunsch pointed out to
me after I closed it.
Submitted by: Tor Egge <Tor.Egge@idt.ntnu.no>
1997-02-25 02:25:02 +00:00
Peter Wemm
476602a9d0
Revert $FreeBSD$ to $Id$
1997-02-22 16:15:28 +00:00
Peter Wemm
fce15c9ab3
Revert $FreeBSD$ to $Id$
1997-02-22 15:48:31 +00:00
Peter Wemm
c0ec1f37ef
Revert $FreeBSD$ to $Id$
1997-02-22 14:40:44 +00:00
Ollivier Robert
a14390ccec
Security patch from OpenBSD: fixes potential buffer overflow in a static
...
buffer (so more difficult to exploit but better safe than sorry). Found
by comparing FreeBSD & OpenBSD sources/logs for the auditing process.
Reviewed by: Warner Losh
Obtained from: OpenBSD
1997-02-20 22:16:39 +00:00
David Greenman
33a20f8291
Protect from stack overrun via /etc/ttys, which could possibly allow a
...
root user to change the securelevel. Pointed out by Thomas H. Ptacek
<tqbf@enteract.com>.
1997-02-19 08:04:58 +00:00
Bruce Evans
4cca17ae59
Disabled dumplfs. Importing the Lite2 version was a mistake, since
...
many files haven't left the vendor branch and the sys/ufs/lfs hasn't
been merged.
1997-02-17 13:15:42 +00:00
Bruce Evans
1e988af73f
Import Lite2's dumplfs.
1997-02-17 13:07:40 +00:00
Bruce Evans
c1530c7bf3
This commit was generated by cvs2svn to compensate for changes in r22839,
...
which included commits to RCS files with non-trunk default branches.
1997-02-17 13:07:40 +00:00
Jordan K. Hubbard
28ebf21479
Update CHANGEDSINCE macro to conform to -current dinode.h
1997-02-16 22:16:08 +00:00
Joerg Wunsch
d41229fcaa
Plug a security hole involving $ENV forwarding over telnet. Sigh, i
...
thought i've long since done this.
1997-02-15 10:15:49 +00:00
Mark Murray
35c6fcd43b
Part two of a "fix-and-move". There were some macros declared in ../sbin's
...
Makefile that were a) broken and b) bogusly placed. This brings the
repeared macros in.
Pointed-out-by: BDE
1997-02-10 17:44:34 +00:00
Mark Murray
77ffbc1aad
Part one of a "fix-and-move". Init(8) had make macros declared here
...
bogusly. This removes the macros for replacement into init's Makefile.
Pointed-out-by: BDE
1997-02-10 17:41:33 +00:00
Daniel O'Callaghan
f607e2c314
Add '-q' quiet flag for flush/add/zero commands; add 'show' command as
...
synonym for '-a list'; stop SEGV when specifying 'via' with no interface;
change 2 instances of strcpy() to strncpy().
This is a candidate for 2.2
1997-02-10 15:36:54 +00:00
Eivind Eklund
20a842df1f
Removed default setuid and added a comment to the manpage explaining this.
1997-02-09 20:56:34 +00:00
Eivind Eklund
2af23c9080
Remove suid bit from binary, and update manpage to reflect this.
1997-02-09 18:03:41 +00:00
Eivind Eklund
b94f03b208
Buffer overflow patch.
1997-02-09 14:09:47 +00:00
Wolfram Schneider
00f1123353
/usr/lib/libmd.a -> ${LIBMD}
1997-02-08 23:24:10 +00:00
Daniel O'Callaghan
772dfa7231
Reviewed by: Gary Jennejohn <gj@freebsd.org>
...
Submitted by: Bruce Murphy <packrat@iinet.net.au>
Add '-a' audible flag, so terminal will beep upon receipt of a reply
packet. Useful for debugging ethernet runs, among other things.
1997-02-08 01:43:56 +00:00
Mike Pritchard
21c7bd7842
Replace "mfs" with "mount_mfs" in the NAME section.
1997-02-06 17:49:55 +00:00
Wolfram Schneider
9a42683b3a
/sbin -> ${BINDIR}
1997-02-06 01:24:43 +00:00
Joerg Wunsch
af00957e47
Add the a' option (
`auto-size'') to bypass all tape length
...
considerations, and dump right to the end of medium.
1997-02-01 23:44:19 +00:00
Mike Pritchard
7610c94088
Some various mdoc cleanup.
...
Partially Obtained from: NetBSD-bugs mailing list
1997-01-28 05:55:22 +00:00
David E. O'Brien
21eab473b3
I was porting something from sysV world and found our cross references
...
not quite as good as I would expect. So I'm introducing mknod to mkfifo,
and vice-versa.
1997-01-27 19:20:05 +00:00
Warner Losh
2e42144ea7
Apply patch from pr2536, after testing locally.
...
Fixes: PR2446 and PR2536
Submitted by: Flemming Jacobsen <fj@tfs.com>
2.2 Candidate.
1997-01-25 05:27:17 +00:00