Commit Graph

1059 Commits

Author SHA1 Message Date
Poul-Henning Kamp
7d150b7705 Added a crunched_here(char *path) function so crunched programs can find out
who they share bed and breakfast with.
1995-05-21 01:50:13 +00:00
Poul-Henning Kamp
3525074d14 Now cpio works for me. (it was Mostly confusion about when the chroot
happened)
Make vsystem crunch aware in an intelligent fashion.
make the boot.flp target more specific (and faster).
1995-05-20 23:33:14 +00:00
Gary Palmer
96fe1684f2 #if 0 out PHK's code until we can find a way of making it crunchgen
dependant so that standalone builds aren't hosed.
1995-05-20 22:47:43 +00:00
Jordan K. Hubbard
6593420ad1 1. Add MBR type menu to take it off of Poul's "gripe sheet".
2. Syntax correction from Andrey.

Good night! :-)
1995-05-20 20:30:12 +00:00
Jordan K. Hubbard
cc1f1b8814 Don't clear the screen for every redraw in the disklabel and
partition editors (ugh).  Fix an utterly bogus message (no arguments :)
in dist.c.  This should all make Poul a little happier and slide in
before the next CTM update window.
1995-05-20 19:22:21 +00:00
Poul-Henning Kamp
9f857b511d Change vsystem to know that the shell is crunched in.
Sanitize a couple of messages.
1995-05-20 19:12:13 +00:00
Jordan K. Hubbard
f5f9a92b2f Fix a few message bogons. 1995-05-20 18:37:03 +00:00
Jordan K. Hubbard
71502538f6 Misc cpio evil. I think I'm going to start working locally and just deal
with the diff/CVS hassles - this represents far too many CVS commit
messages for you folks, and trying to document each and every iteration
of the code is a hassle (and not very useful at that).
1995-05-20 16:22:42 +00:00
Jordan K. Hubbard
c2948a7b51 Hmmm. Try the raw floppy device! This failure mode is a bit strange. 1995-05-20 15:49:53 +00:00
Jordan K. Hubbard
88c97d3785 Whoops - copy_self() was going to the wrong place!
Use proper floppy device names.
1995-05-20 15:47:19 +00:00
Jordan K. Hubbard
e6684cda7a Use ppp0 for all serial devices. It's somewhat kludge, but at
least accurate (we only have one ppp device on the floppy).
1995-05-20 14:36:39 +00:00
Jordan K. Hubbard
7fe566d31b Try again to get cpio_extract() to work. Also fix the bogon
I introduced with msgNotify() again.  Sigh.  I'll get it looking
correct someday!
1995-05-20 14:05:31 +00:00
Jordan K. Hubbard
519501fed0 Correct the name of the release notes file. 1995-05-20 13:36:44 +00:00
Jordan K. Hubbard
6387e9b058 Clear the screen on msgNotifys.
Don't notify in vsystem() - it obscures the original message.
Put some debugging code into cpio_extract() so that I can see
why it doesn't work now. :(
1995-05-20 13:24:35 +00:00
Jordan K. Hubbard
7b74963e46 The problem is the returned salt, while the freebsd man pages asks that the
crypt salt string begin with a '_', no other crypt's do.  If you remove the
initialization of $salt to '_' in sub salt(), everything works as advertised.
Submitted by:	Charles Henrich <henrich@crh.cl.msu.edu>
1995-05-20 13:05:22 +00:00
Jordan K. Hubbard
8568ba4e73 Don't call mediaVerify() in quite so many places. 1995-05-20 11:13:58 +00:00
Jordan K. Hubbard
8f1fd59b90 Fix the DOS discovery code to now re-allocate another virtual device if
it's called multiple times in a row.  Add a new device type "DEVICE_TYPE_DOS"
so that we can look up an previous results.
1995-05-20 11:10:35 +00:00
Jordan K. Hubbard
f10eb488f6 1. Fix a pathological bug I introduced in msgInfo(). Right idea, wrong
implementation.

2. Totally rework device registration.  It's about half the size and
   more powerful now.

3. Add DOS discovery.

4. Start filling in some of the strategy routines.

5. Another clean-up pass over the menus.

6. Make wizard code use Disk typedef.

If I can get the first strategy routine finished tonite, we should have a working
install (from ftp, at least) this weekend.
1995-05-20 10:33:14 +00:00
Jordan K. Hubbard
2cf252e087 Totally re-work cpio_extract.
Erase the annoying "Command output is on debugging screen" message
when it's time to switch back.
1995-05-20 08:31:43 +00:00
Jordan K. Hubbard
dad012f2c6 Correct a few wording bogons in the menus.
Make notify NOT wipe the dialog off right after putting
it up.  Whoops.  Kinda defeated the purpose! :-)
1995-05-20 07:50:20 +00:00
Gary Palmer
e61618782b Make Jordan's ``half baked'' code compile so that make release's aren't
stopped dead in their tracks. Also add the beginnings of my
distribution extraction code in media_strategy.c
1995-05-20 03:49:10 +00:00
Jordan K. Hubbard
7ab5b08b2c This doesn't work - the extract code is half-baked. I commit it only
so that Gary can sync to it before I go to bed.. :)
1995-05-20 00:13:14 +00:00
Jordan K. Hubbard
ceb1d42782 Only apply @mode directives to files.
Don't use the -p flag to tar; it sets the files to the wrong permissions.
Submitted by:	jmz
1995-05-19 22:40:54 +00:00
Jordan K. Hubbard
c7c32addb2 More assorted verbosity. Also don't log informational messages. 1995-05-19 21:30:35 +00:00
Jordan K. Hubbard
1c1834210c Make _DIST_USER use the right flag. 1995-05-19 18:50:59 +00:00
Jordan K. Hubbard
2512487c92 Be more verbose now that we're getting ready to actually extract. 1995-05-19 17:19:39 +00:00
Jordan K. Hubbard
ce4e04980d XF86VGA16 -> XF86VG16 1995-05-19 17:11:07 +00:00
Jordan K. Hubbard
c10caaad51 1. Incorporate Nickolay's ammended patches for Russian screenmap support
as per Andrey's letter.  Make a few modifications for correctness.

2. Add Language menu back to first menu - it was too buried in the
   Options menu.

3. Add size information to all distributions.

4. Add a compat20 distribution (we need to make one of these!!  Any takers?  Please?)

Submitted by:	Nickolay N. Dudorov <nnd@gw.itfs.nsk.su> & jkh
1995-05-19 16:58:58 +00:00
Jordan K. Hubbard
87b47edc82 1. Copy the boot floppy into /stand before extracting the CPIO floppy.
2. On Justin's advice, remind the user when they should switch back
   from the debugging screen, if they're looking over there.
1995-05-19 15:56:02 +00:00
Jordan K. Hubbard
ec9b92d133 Whoops! Put the helpful message telling you to look at the second
screen on the first screen, and not the second.. :-)
1995-05-19 04:17:38 +00:00
Jordan K. Hubbard
977a407e1d Include serial ports as possible network candidates. 1995-05-19 02:31:13 +00:00
Jordan K. Hubbard
a1bfde73e4 Big Sigh. Both A_BOLD and A_UNDERLINE do not appear to work with
syscons (and/or cons25) at all.  This code looked just fine running
on an xterm, but on a console the attributes are all wrong.  I
now have to sacrifice some screen real-estate to pring cheesy
`-' characters to accomplish the same thing.
1995-05-19 02:19:15 +00:00
Jordan K. Hubbard
f8230b2f5f Switch to bold on the header line - the A_UNDERLINE handling appears to be
broken in syscons, or at least in the cons25 termcap entry! :-(  A_BOLD
won't show up on monochrome adapters (I don't think) but they'd be screwed
anyway since I don't have an attribute to use for them now at all.
1995-05-19 02:09:02 +00:00
Gary Palmer
9675b32c2f You want to be in /mnt when extracting the cpio floppy, not in the read
only root filesystem.....
1995-05-19 01:49:57 +00:00
Gary Palmer
aff014ff20 Sigh. Add a ++ which was causing the newfs'ing of non-root filesystems to
fail :-(
1995-05-18 23:36:21 +00:00
Poul-Henning Kamp
18f4c72169 Run bad144 on raw-devs. 1995-05-18 22:00:01 +00:00
Poul-Henning Kamp
b8458cd586 A couple of tweaks to make bad144 scan run. 1995-05-18 21:58:33 +00:00
Poul-Henning Kamp
f7f27cd415 Change the ioctl to match what went into wd.c 1995-05-18 21:26:06 +00:00
Jordan K. Hubbard
561e0b4c76 Use raw devices for newfs.
Write and wizard mode only on enabled disks.
1995-05-18 18:02:31 +00:00
Jordan K. Hubbard
9786c33e55 Poul says that setting fonts on monocrome displays is useless
as most mono displays aren't that intelligent anyway.  Disable it in this
case.
1995-05-18 17:49:09 +00:00
Jordan K. Hubbard
fcddc1c2bc Use CHUNK_BSD_COMPAT as God and Poul intended it be used. 1995-05-18 17:38:02 +00:00
Jordan K. Hubbard
a0b7a5f865 Fix quoting error. 1995-05-18 16:57:52 +00:00
Jordan K. Hubbard
8cdff502c9 I had the arguments to Mount() backwards. Argh. 1995-05-18 16:53:53 +00:00
Gary Palmer
a3bbb2ff49 Dispose of old, #if 0'd, out code which has been proved to be no longer needed. 1995-05-18 16:44:41 +00:00
Gary Palmer
3890483652 Correct a conditional which could cause a off-by-one error in certain
circumstances.
1995-05-18 16:36:14 +00:00
Jordan K. Hubbard
0e8441fc1a Clear the screen after changing the font. 1995-05-18 15:58:32 +00:00
Jordan K. Hubbard
ae1d347651 Whoops! I forgot how uudecode works.. Make it really work here. 1995-05-18 15:46:18 +00:00
Jordan K. Hubbard
a2b4e70705 1. Use 8x16 fonts.
2. Don't use russian screenmap - apparently not necessary with right font.
3. Dequote bogusly quoted font name in english language setting.
4. Use setterm() and hack around an undesirable side-effect (cbreak is unset).
5. be smarter about setting OnVTY, and use it in cases where it makes sense.
Submitted by:	Nickolay N. Dudorov <nnd@gw.itfs.nsk.su>
1995-05-18 15:29:47 +00:00
Jordan K. Hubbard
36678611e6 Add some more debugging information and fix a few missing newlines. 1995-05-18 14:11:16 +00:00
Jordan K. Hubbard
def8bcf342 Fix a very embarassing typo. No wonder this thing was looping! :-) 1995-05-18 13:20:53 +00:00
Jordan K. Hubbard
690e60d830 1. Add serial devices to list of possible network device candidates.
2. Rework tcpip.c a bit so that devices which have been configured also
   have the enabled flag set.
1995-05-18 13:18:35 +00:00
Jordan K. Hubbard
ab9357a910 Also log all user interactions to debugging log. 1995-05-18 12:57:54 +00:00
Jordan K. Hubbard
6aebdd7df9 Do more proper bad144 handling. Thanks, Rod. 1995-05-18 10:43:51 +00:00
Jordan K. Hubbard
4d7b3c6f96 1. Primitive bad144 support (I believe an additional command is needed, but
won't know until Poul wakes up again).
2. Make vsystem() put its output on the debugging fd.
3. DTRT with root filesystem placement - now I see how this has to work
   (thanks, Poul).
4. Many miscellaneous spelling errors fixed and general cleanup.
1995-05-18 09:02:06 +00:00
Jordan K. Hubbard
0b30383382 Use my own version of system() everywhere - it knows where to find the
shell!
1995-05-18 02:42:33 +00:00
Jordan K. Hubbard
4da5212097 1. Set a path to /stand by default.
2. Don't clear() when I can dialog_clear().
1995-05-17 16:16:10 +00:00
Jordan K. Hubbard
498e6d5df3 Remove the seat-belts from the root partition creation code; for some
reason I'm *always* getting CHUNK_PAST_1024 set now, even when it's
definitely not! :-(  Poul, can you perhaps take a look?  Thanks!
1995-05-17 15:41:52 +00:00
Jordan K. Hubbard
d0eeafc570 Commit my latest so that Gary can sync up - this version should also
be the grounds for our first round of testing in the release I'm rolling.
It doesn't load the distributions yet, but it should do everything else.
1995-05-17 14:40:00 +00:00
Gary Palmer
dfa4c76f74 Hopefully the last version of this file. Add a lot more comments, and
actually give the data back to sysinstall in a coherent fashion now.
1995-05-17 12:09:11 +00:00
Gary Palmer
4ea606879a Oops - Jordan managed to grab my ``work in progress file'' which
doesn't even come close to compiling. This file compiles, and should
work.
1995-05-16 20:00:51 +00:00
Garrett Wollman
8ecaae9433 Doc fix - ``active'' specification not parsed by routed in /etc/gateways.
Submitted by:	Mike Newell <mnewell@lupine.nsi.nasa.gov>
1995-05-16 14:10:07 +00:00
Jordan K. Hubbard
b2d228d3d7 This will now compile and even scribble helpfully on your disks.
It remains to be seen how successfully.  The distribution loading code
is still not here yet, but the partition/newfs/mount/cpio-extract cycle
is as complete as it's ever going to get, modulo possible bug fixes.
The TCP/IP setup screen is also sort of here, albeit in a highly-changing
state due to the fact that per-interface information isn't being kept
right now but is being added (thanks, Gary!).
1995-05-16 11:37:27 +00:00
Jordan K. Hubbard
3dee6615c7 This does _not yet compile_; I'm simply bringing in my changes from
this weekend in order to more easily sync with my CVS tree at home.
Another commit relative to these changes will follow shortly.
1995-05-16 02:53:31 +00:00
Jordan K. Hubbard
aa1478bbd2 Fix a problem where pkg_manage refused to allow the user to select a
full directory hierarchy, as is the format of the new ports collection.
It used the old "all packages in one directory" paradigm, which is wrong for
ports now.
Submitted by:	Marc van Kempen <wmbfmk@urc.tue.nl>
1995-05-16 01:30:20 +00:00
Jordan K. Hubbard
88f0d26553 A number of bug fixes to mrouted (no functionality enhancements from 3.5, just
the fixes!):

o Scoped addresses might let traffic in
o IGMP queries sent with wrong timeouts
o Possible core dump in mtrace if we get a request for which we have no route
o If a member on a transit network left a group, mrouted would stop forwarding
  even if there was a downstream router
o Various code cleanups and logging changes

Reviewed by:	wollman
Submitted by:	Bill Fenner <fenner@parc.xerox.com>
1995-05-16 00:28:50 +00:00
Poul-Henning Kamp
b89995508b Basic bad-block scanner. Works. Slow. Adds the bad-spots automatically. 1995-05-15 19:02:09 +00:00
David Greenman
84fbd1c727 Fully initialize (bzero) the stack-allocated "struct sockaddr_in server"
structure. Random junk on the stack would cause the call to bind to fail
in some cases (since the address portion wasn't initialized).
1995-05-15 09:56:49 +00:00
Rodney W. Grimes
e602d31e02 Fix 3 printf's that had the wrong number of arguments.
Submitted by:	gibbs
1995-05-14 19:19:55 +00:00
Gary Palmer
b04042154b tcpdump is in (1) not (l) 1995-05-14 15:21:36 +00:00
Satoshi Asami
d6f5c64683 Added "doc" to the list of subdirs, so that amdref.info* will get
installed in /usr/share/info...closes my own PR, docs/408 (aaah now
I need to figure out how to "close" PRs... ;)....
1995-05-14 11:24:41 +00:00
Rodney W. Grimes
1f6583b909 printf -> fprintf when you use a fd arg :-), oops! 1995-05-14 08:40:37 +00:00
Rodney W. Grimes
46e26c551d Don't add a slash to the end of _PATH_DEV, it already has one.
Print a final newline to stderr after the scan finishes, only do it
at the right place in this version, 1.1.5.1 caused an extra newline
if you where not running -s, and it went to stdout instead of stderr.

Obtained from:	FreeBSD 1.1.5.1
1995-05-14 08:19:08 +00:00
Rodney W. Grimes
1bb5661b59 Add bad144 -s option to scan entire slice of disk.
Obtained from:	FreeBSD 1.1.5.1 (Just the scan function itself was added)
1995-05-14 07:05:47 +00:00
Poul-Henning Kamp
2df6483f69 Reflect the fact that we do not swap on the first <dmmax> blocks of a
swapdev, to protect disklabels and other such magic stuff.
1995-05-14 03:37:40 +00:00
David Greenman
bd7917b1a7 Updated to work with Poul-Henning's recent kernel changes in the swap
device table layout...basically, don't output the cruft anymore - it
is now dynamic.

Reviewed by:	John Dyson and David Greenman
Submitted by:	Poul-Henning Kamp
1995-05-14 03:10:58 +00:00
David Greenman
1295400e49 Updated to work with Poul-Henning's recent changes to the swap device
table.

Reviewed by:	John Dyson and David Greenman
Submitted by:	Poul-Henning Kamp
1995-05-14 03:08:35 +00:00
Rodney W. Grimes
af9fe6e59d mlink bad144.8 to man8/bad144.8 so we can find the manual page.
Use /${MACHINE} for MANSUBDIR instead of hardcoded /i386

Obtained from:	FreeBSD 1.1.5.1
1995-05-14 02:30:19 +00:00
Poul-Henning Kamp
3ee2ce52b4 remove swapinfo. 1995-05-13 17:27:10 +00:00
Poul-Henning Kamp
59392fe2bc Make pstat act like swapinfo if so invoked. 1995-05-13 17:25:23 +00:00
Garrett Wollman
5e7d9e89ba Don't automatically default dumps to be on a swap device; if the user
wants dumps, he can either configure it explicitly (`dumps on' whatever) or
use the dumpon(8) utility.
1995-05-12 19:12:44 +00:00
Garrett Wollman
55678a2eb9 Learn how to print out kern.dumpdev as a name. 1995-05-12 19:10:56 +00:00
Bill Paul
97f3a7e6e7 One for the road: create a ypbind.lock file under /var/run and try to lock
it. If we can't it means there's already a ypbind running and we should
abort.
1995-05-12 16:52:58 +00:00
Jordan K. Hubbard
59927d47cf 1. Don't check CHUNK_BSD_COMPAT for now; it always returns "no" and is
getting in the way of testing right now.
2. Call system() on commands, not vsystem().  No need for vsystem() here.
3. Add a path for the shell.
1995-05-11 09:01:35 +00:00
Jordan K. Hubbard
a9d7ec4113 Revise this to actually print all the various isa_device field values
it really should have been printing all this time.  Also fix my rather
bogus handling of the id_conflicts value by moving it to the end of
isa_device and dealing with that correctly now.
1995-05-11 07:54:41 +00:00
Jordan K. Hubbard
e0d3af579f Clean this up a bit - add more documentation to the documentation menu. 1995-05-11 06:47:46 +00:00
Jordan K. Hubbard
dae062c15f First round of changes after testing this on actual systems. Clean up
some of the badly displayed menus, use the proper notification box for
messages, make proceed work.
1995-05-11 06:10:56 +00:00
Jordan K. Hubbard
babb4e927f Add a new `conflicts' flag for telling when a device is in conflict with
others.  The flag can be put in descriptive locations, e.g.:

device sb0      at isa? port 0x220 irq 7 conflicts drq 1 vector sbintr
or
device psm0	at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr

But is nonetheless boolean only.  You can't turn conflict checking off for
only a given type of conflict.  I didn't deem it worth the trouble at this
stage, and it's far better than the ALLOW_CONFLICT_* that preceeded it.
1995-05-11 02:21:34 +00:00
Bill Paul
4d6e34053f Ack! One slipped through the cracks: remember to return the correctly
filled-in result structure to the caller when a resource allocation
error is encountered in ypbindproc_domain_2.
1995-05-11 00:16:54 +00:00
Bill Paul
c904a246d2 Performace improvements/simplifications/cleanups:
- Make the child process reaper signal-driven. (Previously, we called reaper()
  once a second each time we went through the select() loop. This was
  convenient, but inefficient.)

- Increase main select() timeout from 1 second to 60 seconds and use
  this as the ping timer instead of using timestamps in the _dom_binding
  structure. This nd the reaper() change noted above makes ypbind a little
  less CPU-intensive.

- Don't flag EINTR's from select() as errors since they will happen as a
  result of incoming SIGCHLD's interrupting select().

- Prevent possible resource hogging. Currently we malloc() memory
  each time a user process asks us to establish a binding for a domain,
  but we never free it. This could lead to serious memory leakage if a
  'clever' user did something like ask ypwhich to check the bindings
  for domains 0.0.0.0.0.0.0.0.0.0 through 9.9.9.9.9.9.9.9.9.9 inclusive.
  (This would also make a mess out of the /var/yp/binding directory.)

  We now avoid this silliness by a) limiting the maximum number of
  simultaneous bindings we can manage to 200, and b) free()ing _dom_binding
  structures of secondary domains whose servers have stopped responding.
  We unlink the /var/yp/binding/domain.vers files for the free()ed
  domains too.

  (This is safe to do since a client can prod us into reestablishing the
  binding, at which time we'll simply allocate a new _dom_binding structure
  for it.)

  We keep count of the total number of domains. If asked to
  allocate more than the maximum, we return an error. I have yet to hear
  of anybody needing 200 simultaneous NIS bindings, so this should be
  enough. (I chose the number 200 arbitrarily. It can be increased if need
  be.)

- Changed "server not responding"/"server OK" messages to display server
  IP addresses again since it looks spiffier.

- Use daemon() to daemonify ourselves,

- Added a SIGTERM handler that removes all binding files and unregisters
  the ypbind service from the portmapper when a SIGTERM in received.

- The comment 'blow away everything in BINDINGDIR' has no associated code.
  Give it some: clean out /var/yp/binding at startup (if it exists).

This completes my ypbind wishlist. Barring bug fixes, I shouldn't need to
go poking around in here anymore. (Of course, this means I can start
working on my ypserv whishlist now... :)
1995-05-10 23:02:41 +00:00
Jordan K. Hubbard
36dc394c61 Fix a long-standing bug that broke pkg_info utterly and probably made
pkg_add a little wiggy too.
1995-05-10 23:00:16 +00:00
Jordan K. Hubbard
e8019cb42b Fix a long-standing bug that broke pkg_info utterly and probably made
pkg_add a little wiggy too.  Document the fact that pkg_info can also
take a URL.
1995-05-10 23:00:07 +00:00
Jordan K. Hubbard
82f99dbbda Bump the number of allowable args by a factor of 4. I just scanned
all possible packing lists and found that at least one of them is
pretty large!
1995-05-10 22:33:55 +00:00
Jordan K. Hubbard
28ed622cab Document fetch-by-URL. 1995-05-10 20:56:19 +00:00
Jordan K. Hubbard
c63a4dc13b Re-work make_dist() routine to build the tar command more reasonably.
This should eliminate the problem with truncated packages.
1995-05-10 20:46:06 +00:00
Jordan K. Hubbard
42206c90f4 Don't use curses routines until that part of the system is initialized. 1995-05-10 18:59:51 +00:00
Jordan K. Hubbard
8e3bb099bf Sync up to Poul - use his new Create_Chunk_DWIM() function and use the pointer
it passes back.  Thanks, Poul!
1995-05-10 09:25:49 +00:00
Jordan K. Hubbard
b34c876a61 Make sure that mountpoints start with a /. 1995-05-10 08:03:21 +00:00
Jordan K. Hubbard
4ec1f4bcf2 Whoops - dispatch() takes multiple args now. 1995-05-10 08:00:47 +00:00
Jordan K. Hubbard
351669d743 Fold in all my recent changes.
Do another clean-up pass over this, making the generic menu handler much
more powerful (now handles multiple dispatch).  A few more menus fleshed
out and the beginnings of the distribution handler committed.  Should
be transfering full distributions over in the next commit.
1995-05-10 07:45:00 +00:00
Jordan K. Hubbard
f26b6240ac Switch from bogus absolute path to a relative one.
Closes PR #bin/391
Submitted by:	Stephen McKay <syssgm@devetir.qld.gov.au>
1995-05-09 23:48:54 +00:00
Rodney W. Grimes
ad753d5151 Fix nested comments for -Wcomment warnings. 1995-05-09 12:48:21 +00:00
Rodney W. Grimes
06e81069bd Fix nested includes for -Wcomment. 1995-05-09 12:35:29 +00:00
Jordan K. Hubbard
f9a1c2dee2 Sync these up so that they'll get into my CVS tree at home, where I'll continue
working on the distribution extract stuff.
1995-05-08 21:39:40 +00:00
Jordan K. Hubbard
9e572e47e5 Whoops! Uncomment Write_Disk() again. 1995-05-08 18:41:37 +00:00
Gary Palmer
8b3fe702b7 Change /lib/cpp to /usr/bin/cpp 1995-05-08 16:50:19 +00:00
Jordan K. Hubbard
4d66a82366 Perform a much needed tidying-up pass over this code. Sleep for now,
more tomorrow.
1995-05-08 10:20:56 +00:00
Jordan K. Hubbard
69bbb06233 Add the sorted command executor code. 1995-05-08 06:08:27 +00:00
Jordan K. Hubbard
7f197a5448 Ok, we should now create all filesystems, mount them and extract the
cpio floppy at this point.
1995-05-08 06:06:30 +00:00
Jordan K. Hubbard
83b74c37e4 Implement the geometry command. Clean up the help a little. 1995-05-08 01:27:07 +00:00
Jordan K. Hubbard
65a27a9ba4 Add a wizard button for Poul. 1995-05-08 00:56:28 +00:00
Jordan K. Hubbard
0881c9c4a1 Fix a bug in multi-column output. 1995-05-08 00:38:02 +00:00
Jordan K. Hubbard
27e3eb523c Another sync up for Poul. Added a lot more error checking. 1995-05-07 23:37:34 +00:00
Andrey A. Chernov
020531ce67 Add FreeBSD-specific TS_* states 1995-05-07 23:19:53 +00:00
Andrey A. Chernov
9030041959 Enable sio driver and upcoming rc driver
Add more line disciplines
1995-05-07 22:15:46 +00:00
Jordan K. Hubbard
51f0ec8415 Implement a work-around for Create_Chunk providing no pointer to the
new chunk.  The partition editor now works as well as the underlying
libdisk can support it - have at it, Poul!
1995-05-07 22:07:53 +00:00
Bruce Evans
2d732692dc Fix 3 fatal mismatches in format args involving dbtob() and 7 nonfatal
mismatches.
1995-05-07 08:13:37 +00:00
Bruce Evans
ff55774394 Cast some expressions involving dbtob() to (unsigned long) and print them
using %lu.  This became more broken when I fixed dbtob() to support byte
offsets >= 4GB.  The type had to change to [u]quad_t.  Previously the
expressions had type unsigned long and were printed using %d.  After
division by 1024, the expressions are guaranteed to fit in an unsigned
long, at least for the standard DEV_BSIZE, so edquota doesn't need to
know about quad_t's explicitly.

Fix all the other format mismatches exposed by compiling with -Wformat
(6 more quota limits of type unsigned long printed using %d and 6 time_t's
(i.e., longs) printed using %d).
1995-05-07 07:48:35 +00:00
Jordan K. Hubbard
2b0e7dfa13 Make this compile again. Poul and I need to sync up again. 1995-05-07 05:58:57 +00:00
Bruce Evans
2f27939662 Silence `make -s' (echo -> ${ECHO}). 1995-05-07 05:56:00 +00:00
Jordan K. Hubbard
133231e4aa Correct a few ordering errors in how the partitions were being displayed. 1995-05-07 03:38:03 +00:00
Jordan K. Hubbard
64330cc768 Print sizes of partitions now. 1995-05-07 02:04:29 +00:00
Jordan K. Hubbard
4c88964f89 Some fairly serious cleanup. The proper offset should now be used in
creating partitions.  Still need to get the mount points displaying carefully,
but I need to get this into my tree on time so that I can work on that.
1995-05-06 09:34:24 +00:00
Joerg Wunsch
2b33ce9350 Forcibly add -O2 to the vgaio CFLAGS, to work around a gcc bug. 1995-05-06 07:07:52 +00:00
Jordan K. Hubbard
e4d731b693 All the editors are finished. Now if I can just get a problem with libdisk
fixed, we should be able to fully set up the user's disk.  Still to come
with next commit:  filesystem setup, distribution extraction, final
configuration.
1995-05-05 23:47:47 +00:00
Jordan K. Hubbard
a2e3498a3c Everything but the partition editor is done. This commit is for MBR testing. 1995-05-04 23:36:23 +00:00
Jordan K. Hubbard
7c56cfd441 This will now write MBR entries - should be enough for testing. 1995-05-04 19:48:19 +00:00
Jordan K. Hubbard
2e363cad34 My latest round of changes - make the "slices" editor work. 1995-05-04 03:51:22 +00:00
Jordan K. Hubbard
786a5cad11 Change the perennially annoying reminder to "make depend" (which may or
may not be desired if you're just going to blow the kernel away again later)
and substitute one that tells the user where the new kernel build
directory actually IS, which can at least be argued to be useful information
in all cases.
Reviewed by:	davidg
1995-05-03 20:16:57 +00:00
Bill Paul
90b434aeb0 Cosmetic changes and paranoia checks:
ypbind.c:
Make fewer assumtions about the state of the dom_alive and dom_broadcasting
flags in roc_received().
Cosmetic changes and paranoia checks:

ypbind.c:
Make fewer assumtions about the state of the dom_alive and dom_broadcasting
flags in roc_received().

If select() fails, use syslog() to report the error rather than perror().

Check that all our malloc()s succeed. Report malloc() failure in
ypbindproc_setdom_2() to callers.

yplib.c:

Use #defined constants in ypbinderr_string() rather than hard-coded values.
1995-05-03 18:34:22 +00:00
Rodney W. Grimes
6de98b5d98 Put $Id$ on all of these.
Correct Makefile so that we build during all: and only install for
make install.

If /etc/sysconfig exists source it to get the flags for restarting
named with.  If /etc/sysconfig says no named runs, don't try to start one.

Don't attempt to kill anything if we can not find the named.pid file.

Reviewed by:	Nickolay N. Dudorov <nnd@gw.itfs.nsk.su>
1995-05-03 03:26:59 +00:00
Jordan K. Hubbard
411bac67a7 Commit my latest changes before having a nap. Still not close to done,
nor is it in sync with my working sources, but it leaves me less CVS hassles
to bring in the new files at this time.  Still no documentation to translate
quite yet, but soon.  This stuff is actually very close now.
1995-05-01 21:56:32 +00:00
Andrey A. Chernov
7439966a40 Don't accept usernames longer than 8 characters
Submitted by: Wolfram Schneider <wosch@cs.tu-berlin.de>
1995-04-30 19:20:25 +00:00
Jordan K. Hubbard
e40a316fcf o Add extra menu types (radio implemented, multiple choice shortly).
o Make the framework generally more robust.
o Figured out how to nest the menu descriptions - no more grotty initialization
  of menus.
o Fix bug with helpline and helpfile not being reset.
o Add stubs for the media selection code.

Coming next:  Fdisk and disklabel screens using Phk's new libdisk stuff.
1995-04-29 19:33:06 +00:00
Andrey A. Chernov
280bdae500 HAVE_SAVED_UIDS not depends of BSD version but depends
of _POSIX_SAVED_IDS from unistd.h, fix it.
1995-04-29 15:16:41 +00:00
Andrey A. Chernov
926f1d2e59 Close sec. hole: can exec pgm with more groups than calling user have
Include unistd.h and fix few argument old-way things
1995-04-29 13:55:34 +00:00
Andrey A. Chernov
ee9968eab5 Remove FreeBSD-specific setre*() cheat, we have working thing now 1995-04-29 13:38:14 +00:00
Andrey A. Chernov
aa4f20e4df Fix typo in HAVE_SAVED_UIDS define 1995-04-29 13:25:13 +00:00
Jordan K. Hubbard
d9a50f903f Whoops! One of my automatics was initialized to garbage. Fix it. 1995-04-28 18:24:31 +00:00
Søren Schmidt
de4c8be3eb Corrected variable names for syscons support. 1995-04-28 09:08:18 +00:00
Poul-Henning Kamp
ca927fef5b Don't dereference NULL pointers. 1995-04-28 04:58:19 +00:00
Poul-Henning Kamp
4ccbee740d Told Makefile about manpage. 1995-04-28 04:52:33 +00:00
Poul-Henning Kamp
f663de8187 Had a moment, wrote a manpage based on kprof's page. 1995-04-28 04:51:08 +00:00
Jordan K. Hubbard
2283d8e502 Use mtree -U instead of -u and put back error check. Thanks Rod! 1995-04-28 04:16:30 +00:00
Jordan K. Hubbard
d0d3dac501 This will be the module that handles all media detection. 1995-04-27 18:05:10 +00:00
Jordan K. Hubbard
ef42570d65 Latest raft of changes.
Added another couple of menu item types.

Reshuffled the menus and added a few more.  Sure wish I could figure out
how to initialize a menu with _one_ initializer rather than two! :(
1995-04-27 18:03:55 +00:00
Jordan K. Hubbard
4e278bdb76 Here is my first "framework" commit of the new sysinstall. There is a LOT
more to come in the next 24 hours, this is just the first stable result of
8 hours of hacking so far.  The specification format for menus is pretty
much hammered out and the beginnings (very humble) of the doc hierarchy
are present for an example.  It should be quite easy to add a lot more
menus quickly to this since I did go somewhat out of my way to make the
framework easy to work with.  This is NOT the glorious semi-graphical
sysinstall (or whatever its name will be) that the install-geeks are working
on, this is simply the "son of sysinstall" I've been promising to write in
the interim for 2.0.5 and 2.1R (super install doesn't come until 2.2R).
1995-04-27 12:50:35 +00:00
Jordan K. Hubbard
278ea7ecee Don't bother checking the return status of the mtree command - it returns
non-zero stats when it changes things, too.
1995-04-27 11:33:08 +00:00
Jordan K. Hubbard
9d69574dbc Close PR:
>Number:         368
>Category:       bin
>Synopsis:       Lpd doesn't log errors after failed exec
>Description:

If an exec done by lpd fails, nothing is sent to the system log
indicating what went wrong.  This is because lpd closes all of
the file descriptors before doing the exec, thus closing the syslog
file descriptor in the process.
[Fix applied]
Submitted by:	pritc003@maroon.tc.umn.edu
1995-04-27 04:56:10 +00:00
Bill Paul
456ebbf8f5 ypbind.c: Major overhaul.
- Moved to a more client-driven model. We aggressively attempt to keep
the default domain bound (as before) but we give up on non-default
domains if we lose contact with a server and fail to get a response
after one round of broadcasting. This helps drastically reduce the
amount of network bandwitdh that ypbind consumes: if a client references
the secondary domain at some later point, this will prod ypbind into
establishing a new binding anyway, so continuously broadcasting without
need is pointless.

Note that we still actively seek out a binding for our default domain
even if no client program has queried us yet. I'm not exactly sure if
this matches SunOS's behavior or not, but I decided to do it this way
since we can get into all sorts of trouble if our default domain comes
unbound. Even so, we're still much quieter than we used to be.

- Removed a bunch of no-longer pertinent comments and a couple of
chunks of #ifdef 0'ed code that no longer fit in to the new layout.

- Theo deRaadt must have become frustrated with the callback mechanism
in clnt_broadcast(), because he shamelessly stole the clnt_broadcast()
code right out of the RPC library and hacked it up to suit his needs.
(Comments and all! :)

I can understand why: clnt_broadcast() blocks while awaiting replies.
Changing this behavior requires surgery. However, you can work around
this: fork the broadcast into a child process and relay the results
back to the parent via a pipe. (Careful obervation has shown that the
SunOS ypbind forks children for broadcasting too, though I can only
guess what sort of interprocess communication it uses. pipe() seems to
do the job well enough.)

This may seem like the long way around, but it's not really that
hard to implement, and I'd prefer to use documented RPC library functions
wherever possible. We're careful to limit the number of simultaneous
broadcasters to avoid swamping the system (the current limit is 5).
Each clnt_broadcast() call only sends out a small number of packets
at increasing intervals. We're also careful not to spawn more than one
bradcaster for a given domain.

- Used clntudp_bufcreate() and clnt_call() to implement a ping()
function for directly querying a particular server so that we can
check if it's still alive. This lets me completely remove the old
bradcasting code and use actual RPC library calls instead, at the
cost of more than a few handfulls of torn-out hair. (Make no mistake
folks: I *HATE* RPC.) Currently, the ping interval is one minute.

- Fixed another potential 'nfds too big for select()' bug: use
_rpc_dtablesize() instead of getdtablesize().

- Quieted gcc -Wall a bit.

- Probably a bunch of other stuff that I've forgotten.

ypbind.8:

- Updated man page to reflect modifications.

ypwhich.c:

- Small mind-o fix from last time: decode error results from
ypbind correctly (*groan*)

yplib.c:

- same as above

- Change behavior of _yp_dobind() a little: if we get back a 'Domain
not bound' error for a given domain, retry a few times before giving
up and passing the error back to the caller. We have to sleep for a
few seconds between tries since the 'Domain not bound' error comes
back immediately (by repeatedly looping, we end up pounding on ypbind).
We retry at most 20 times at 5 second intervals. This gives us a full
minute to get a response. This seems to deviate a bit from SunOS
behavior -- it appears to wait forever -- but I don't like the idea
of perpetually hanging inside a library call.

Note that this should fix the problems some people have with bindings
not being established fast enough at boot time; sometimes amd is started
in /etc/rc after ypbind has run but before it gets a binding set up. The
automounter gets annoyed at this and tends to exit. By pausing ther YP
calls until a binding is ready, we avoid this situation.

- Another _yp_dobind() change: if we determine that our binding files
are unlocked or nonexistent, jump directly to code that pokes ypbind
into restablishing the binding. Again, if it fails, we'll time out
eventually and return.
1995-04-26 19:03:16 +00:00
Jordan K. Hubbard
f465ace952 Add code for dealing with URLs. 1995-04-26 15:08:23 +00:00
Jordan K. Hubbard
a0a72d6933 Make pkg_info URL aware (and also make it use the PKG_PATH properly, like
everyone else).  Try this:
	pkg_info ftp://freebsd.org/pub/FreeBSD/packages/all/gmake-3.73.tgz
1995-04-26 15:08:02 +00:00
Jordan K. Hubbard
34f907903d Add depend on libftp since this is now in lib. 1995-04-26 15:07:14 +00:00
Jordan K. Hubbard
18a7c7704f Add a great deal more error checking to various things. 1995-04-26 15:06:58 +00:00
Jordan K. Hubbard
7113d27114 Further work on making all this more robust in the face of failure.
Also allow URL specification for a package.  This works for things the
package may depend on, too.

Allow PKG_PATH to be used anywhere a package is being searched for.
1995-04-26 15:06:26 +00:00
Jordan K. Hubbard
80206f052f Yikes! How did that typo slip past! I'd swear I compiled it. Oh well,
thanks, Satoshi!

Embarrassed by:	asami
1995-04-26 12:37:46 +00:00
Jordan K. Hubbard
d14afa6dd2 As per Bruce's advice, use sysconf to get the max argument size and
dynamically allocate that much space, also using snprintf() and strncat()
to do proper bounds checking.
1995-04-26 11:43:20 +00:00
Jordan K. Hubbard
8d006a838c Check dependencies BEFORE doing final extraction of package.
Fix a bug where direct-extract mode would have still invoked the
packing list reordering commands.
1995-04-26 07:43:35 +00:00
Jordan K. Hubbard
0170dd7dec My handling of the missing dependency but !Verbose was wrong. Make
the right message come out.
1995-04-26 06:56:05 +00:00
Jordan K. Hubbard
1c491c8eb8 Use ARG_MAX instead of _POSIX_ARG_MAX: 4K is too small!
This should stop the SIGBUS errors in pkg_create for some packages.
1995-04-24 21:50:11 +00:00
Garrett Wollman
d259f40530 Grand new all-singing, dialog-wielding tzsetup(8). Still needs a man page. 1995-04-24 21:04:35 +00:00
Jordan K. Hubbard
cc472f1367 Commit the latest version of this. This version appears to handle package
failure much more gracefully, as well as implement a few new needed features.
Check it out!
Submitted by:	Marc van Kempen <wmbfmk@urc.tue.nl>
1995-04-24 13:01:04 +00:00
Jordan K. Hubbard
2a20a9edde Stage almost nothing through the playpen now - this should speed pkg_creates
up by a couple of factors, as well as decrease the amount of temporary space
required to build a package down to almost nothing.
1995-04-22 14:55:07 +00:00
Jordan K. Hubbard
3e1a18606d Export the min_free() function. 1995-04-22 13:58:44 +00:00
Jordan K. Hubbard
cbf098db0e Second round:
1. Make paths work correctly.
2. Make pkg_add generally more robust in the face of failure.
3. Make the depend messages come out on stderr or stdout, but not both
   interspersed! :-)
1995-04-22 13:58:24 +00:00
Jordan K. Hubbard
3ec12cb0ce Set a default PKG_PATH. 1995-04-22 10:58:23 +00:00
Jordan K. Hubbard
e692e3aa52 1. Add an new @option directive. You'll understand it better in a moment.
2. Fix a long-standing bug in pkg_add where the failure of one package in
   a multipackage installation (pkg_add *.tgz) would blow you right out of
   the water.  Ick.
1995-04-22 07:41:02 +00:00
Jordan K. Hubbard
adbcdd9cce Argh - missed a printf! That should be the last of plist-spewers. 1995-04-22 01:20:13 +00:00
Jordan K. Hubbard
922a707e02 Don't spew garbage into the packing list when PlistOnly and verbose are
both on.  Whoops!
1995-04-22 00:59:33 +00:00
Jordan K. Hubbard
cca32e93aa Some patches to make deletions of non-existent files and directories slightly
less fatal (so that the database entry is subsequently removed anyway).
Submitted by:	Edward Wang <edward@edcom.com>
1995-04-22 00:14:20 +00:00
Jordan K. Hubbard
3a5e372a3d 1. Add proper dependencies to the library in my Makefiles. This was pointed
out by Bruce.
2. Add a "feature" to pkg_create (OK, OK, it's a miserable hack!) to get
   it to dump its internal packing list out so that the `fake-pkg' rule in
   bsd.port.mk can generate a more meaningful packing list.
1995-04-22 00:03:18 +00:00
Bill Paul
644161688b small NIS binding fixes:
ypbind.c: if a client program asks ypbind for the name of the server
for a particular domain, and there isn't a binding for that domain
available yet, ypbind needs to supply a status value along with its
failure message. Set yprespbody.ypbind_error before returning from
a ypbindproc_domain request.

yplib.c: properly handle the error status messages ypbind now has the
ability to send us. Add a ypbinderr_string() function to decode the
error values.

ypwhich.c: handle ypbind errors correctly: yperr_string() can't handle
ypbind_status messages -- use ypbinderr_string instead.
1995-04-21 18:04:36 +00:00
Jordan K. Hubbard
7332aa0b69 Clean up this manpage a bit. I didn't try to seriously rearrange any
of the descriptions, I simply fixed some of the english and made his
file selector example show up.
1995-04-21 10:38:21 +00:00
Jordan K. Hubbard
88d7c6751c Whoops - I committed the test environment Makefile by mistake! This
one should have all the proper relative paths.
1995-04-21 10:23:23 +00:00
Jordan K. Hubbard
e722380a68 Bring this up to date with Marc van Kempen's latest version (1.0) now
that the libdialog changes have gone in to support it.
Submitted by:	Marc van Kempen <wmbfmk@urc.tue.nl>
1995-04-21 10:05:46 +00:00
Jordan K. Hubbard
36034afc79 Correct a bogusly formatted printf(). 1995-04-21 06:30:41 +00:00
Poul-Henning Kamp
d337216dd8 Add -f to all gunzip's. 1995-04-21 03:47:23 +00:00
Jordan K. Hubbard
8c4e15334e Greatly simplify the calling of mtree - the error handling wasn't working
anyway, at least not with FreeBSD's mtree, and the arguments were being
built incorrectly.
1995-04-19 14:54:25 +00:00
Jordan K. Hubbard
e804f03a5d Add support for the ${PKG_DBDIR} environment variable. /var/db/pkg is the
default, and probably not something you'd ever change, but now it's
possible to do so for local/custom installations.
1995-04-19 14:02:01 +00:00
Gary Palmer
a07c2891bf Bugfixes :
- in mount_portal.c: included catching of SIGHUP to get portald to
  re-read the config file.

  - in mount_portal.c: in SIGCHLD handler the return values checked from
  waitpid were wrong. Note. this routine was written correclty according
  to the manual page for 4.4BSD, but waitpid does not exhibit this
  behaviour. It is not returning 0 when WNOHANG is specified. I havent
  checked this properly.

  - in mount_portal.c: initialized the fdset for the select properly.

  - in mount_portal.c: corrected poor casting in the select.

  - in mount_portal.c: changed a break; to exit (0); so that the
  children die after doing the hard work, this stops the select: bad
  file descriptor messages.

  - in pt_file.c: the kernel passes kernel style open flags to the
  portal code which aren't compatible with "normal" O_ flags. I have
  adjusted these in pt_file.c. In general I think the portal fs code
  and portal_cred structure need changing to pass to the portald
  the right style of flags _and_ the permissions.

  - in pt_tcp.c: a few mistakes in typing of the socket structures,
  getservbyname returns the port number as an int but sockaddr wants
  the port number as an u_short.

  - in pt_tcp.c: someone wrote this on a VAX/Sun whatever and forget
  about byte ordering!! I've included a few htons about the place.

  - in all the above I have sprinkled a few more debugging printf's.

Submitted by:	"Duncan McL Barclay" <dmlb@ohm.york.ac.uk
1995-04-19 12:24:08 +00:00
Jordan K. Hubbard
4b96fa37b0 Use a more nicely formatted message when we run out of space. 1995-04-18 13:04:34 +00:00
Jordan K. Hubbard
9a6f00fd39 Extensive updates to this package.
Moved Install.notes -> README, as ratified at the core meeting of
April 13th.

Submitted by:   Gene Stark <gene@starkhome.cs.sunysb.edu>
1995-04-18 01:57:50 +00:00
Rodney W. Grimes
0a8cb0c4a5 Missing ${DESTDIR} added 4 places, pcvt's Makefiles are a crock! 1995-04-17 19:28:45 +00:00
Rodney W. Grimes
0682236f7e Add 4 missing ${DESTDIR}'s, this is another Makefile that needs rewritten. 1995-04-17 19:24:50 +00:00
Atsushi Murai
4fb5c16406 Loglevel is a bitmask everywhere except in lqr.c.
Reviewed by:	Atsushi Murai <amurai@spec.co.jp>
Submitted by:	John Capo <jc@irbs.com>
1995-04-17 04:21:35 +00:00
Bruce Evans
9e6dc28ab3 Check for i/o errors in fclose() so that a full disk doesn't almost
guarantee truncation of the file being edited.
1995-04-16 22:40:49 +00:00
Atsushi Murai
38c50f39a0 Fixing follows and John's fruent explnation than my English....
The first problem I found was that descriptor 0 was being closed.
This happens because the modem variable is set to 0 to indicate
that it is not valid but there are not enough tests for the modem
variable being 0.  You can see where I have done this in the patch.
Code in OpenModem() dups the modem descriptor if it is < 3.  Once
this happened the modem was always open and an incomming call would
have getty and ppp reading the modem.

Descriptor 1 is closed when the quit command was executed from a
telnet connection.  The next modem open returns descriptor 1
and this gets duped leaving the modem always open again.

The modem was not being closed when the connection dropped or was
closed from the other end.  The UUCP lock was also not removed if
the modem could not be opened.

Reviewed by:	Atsushi Murai <amurai@spec.co.jp>
Submitted by:	John Capo <jc@irbs.com>
1995-04-16 13:38:39 +00:00
Atsushi Murai
10b748971b Fix for handling a HDLC's escape characters as properly.
Reviewed by:	Atsushi Murai <amurai@spec.co.jp>
Submitted by:	NIIMI Satoshi <sa2c@st.rim.or.jp>
1995-04-16 12:06:39 +00:00
Bruce Evans
5c1bcbae24 Do what the previous log message claimed to do and don't enable DES if
the user doesn't have the secure sources.
1995-04-16 01:40:24 +00:00
Bill Paul
a00f731551 In environments with multiple NIS servers (a master and several slaves)
one ypbind broadcast can yield several responses. This can lead to
some confusion: the syslog message from ypbind will indicate a rebinding
to the first server that responds, but we may subsequently change our
binding to another server when the other responses arrive. This results
in ypbind reporting 'server OK' to one address and ypwhich reporting a
binding to another.

The behavior of the rpc_received() function has been changed to prevent
this: subsequent responses received after a binding has already been
established are ignored. Rebinding gratuitously each time we get a
new response is silly anyway.

Also backed out the non-fix I made in my last ypbind commit. (Pass
me the extra large conical hat, please.)

(At some point I'm going to seriously re-work ypbind and the _yp_dobind()
library function to bring them in line with SunOS's documented behavior:
binding requests are supposed to be 'client-driven.' The _yp_dobind()
function should be responsible for retrying connections in response to
calls from client programs rather than having ypbind broadcasting
continously until a server responds. The current setup works okay in
normal operation, but we broadcast far too often than we should.)
1995-04-15 23:35:46 +00:00
Bruce Evans
e007f8483b - Don't write the label if the (undocumented) nflag is set.
- Don't write the label directly - use DIOCWDINFO.
- Avoid overflow in calculation of lseek() offsets.
- Fix format args in strings some more.  %ld and %lu were often reversed and
  #ifdefed out strings weren't fixed.
- Don't hard code the raw partition letter or DKBAD*.
- Write the qsort() comparision function in `C'.
- Fix all remaining warnings from `cc -Wall -Walmost-really-all'.
1995-04-15 21:59:26 +00:00
Andreas Schulz
892dbf3c38 Add mixer to the clean/cleandir targets to get it also cleaned up. 1995-04-15 21:45:49 +00:00
Andrey A. Chernov
c5dda01527 Fix MAILTO hole by passing -t to sendmail
Submitted by: Mike Pritchard <pritc003@maroon.tc.umn.edu>
1995-04-14 21:54:18 +00:00
Andrey A. Chernov
7ed12e2a4a Really fix MAILTO hole by parsing spaces.
Remove local bitstring copy
1995-04-13 20:58:13 +00:00
Joerg Wunsch
936209a647 Include pcvt into the list of subdirs, so its utilities will be
included into fututre distributions.
1995-04-13 20:27:11 +00:00
Andrey A. Chernov
f8cb57f574 Don't set -or0s (timeout 0) for possible network MAILTO 1995-04-12 19:28:30 +00:00
Andrey A. Chernov
4c256f710e Fix home dir cheating 1995-04-12 19:04:26 +00:00
Andrey A. Chernov
1cb37d6325 Close MAILTO security hole 1995-04-12 18:57:37 +00:00
Garrett Wollman
fe9140c204 there is a endian problem when setting up tunnel and phyint boundaries
in the mrouted. inet_parse returns network byte ordered address, but there
are a couple comaprisons that need to be done on the addresses and the
comparisons are done in host order. I left the comparisions for 0xffffffff
alone, because this value is the same in network and host orders.

Submitted by:	Mark Tinguely <tinguely@plains.NoDak.edu>
1995-04-10 18:42:10 +00:00
Jordan K. Hubbard
1b164cce2b Neither of these tools really told you what you needed to know neatly
and succinctly in verbose mode.  I hope people find this more to their
liking.
1995-04-10 08:01:52 +00:00
David Greenman
9dcb6988b3 Removed bogus #include of netinet/in_pcb.h 1995-04-10 00:41:25 +00:00
Bill Paul
2d91aab798 First crack at a man page for ypbind. 1995-04-09 21:59:06 +00:00
Jordan K. Hubbard
6c5325bf0e Add true support for dependency lists.
1. pkg_create now has a -P argument for specifying dependencies on the
   command line.
2. pkg_add will honor dependencies and chain-load them automatically if
   it finds the required package(s) in the same directory as the package
   that is being loaded.  For best results, install packages from a directory
   containing all the packages you'll possibly need
   (like /usr/ports/packages/all).

2 remaining flaws:

1. pkg_add looks in one place (where you were when you loaded the primary
   pkg) for depended packages.  If you can come up with a search path scheme
   that's not a total hack - be my guest!

2. Recursive dependency expansion can result in the name of a dep being
   listed more than once.  This doesn't bother pkg_add since it checks
   for package existance with pkg_info and will skip already-loaded packages.
   I don't know how/if pkg_delete handles this yet, however.  I need to look
   into it.
1995-04-09 15:05:01 +00:00
Joerg Wunsch
a3e026396c The rmt protocol didn't allow to pass a file creation mode (permission
bits) along, and rmt did the wrong thing in calling open(2) with random
garbage as third parameter.  Make it create new files with 0666
(modified by the umask of the remote shell anyway).

This removed the last show-stopper from tar not working with remote
archives.
1995-04-09 09:20:47 +00:00
Poul-Henning Kamp
18987c6ebd Clean up, and make it work with Bruces wd.c changes.
Bad144 is on the way back.
1995-04-09 06:06:01 +00:00
Andrey A. Chernov
6b234a88dc Non-blocking lock
Remove old salt cause possible endless loop
Submitted by: <wosch@cs.tu-berlin.de>
1995-04-09 03:34:10 +00:00
Joerg Wunsch
785b47579d Upgrade pcvt to 3.20 b24. 1995-04-08 16:04:22 +00:00
Andrey A. Chernov
70e6b1cd61 Manpage not installed 1995-04-06 14:41:50 +00:00
Jordan K. Hubbard
4ba103156d Latest version of this package from Wolfram. Is now /etc/sysconfig aware,
handles default settings and has a prototype translation file for people
wishing to add extra languages (please!).
Submitted by:	Wolfram Schneider <wosch@cs.tu-berlin.de>
1995-04-05 08:09:25 +00:00
Rodney W. Grimes
756097f16a Bring down the old version of Makefile from the Attic and replace with this
bmake version of Makefile to build and install dcfd.

Submitted by:	Vincenzo Capuano <VCAPUANO@vmprofs.esoc.esa.de>
1995-04-04 17:48:02 +00:00
Bill Paul
9f3db41ff5 Fix long standing bogosity in ypbind: if /var/yp/binding doesn't exist,
ypbind is supposed to create it but it doesn't. This is because when
it checks the return value for the attempted open() of
/var/yp/binding/DOMAIN.VERSION, it tests only for a value of -1. This
is bogus because open() doesn't return -1 in this case. Now it checks
for < 0 instead.

This should make life easier for many NIS-newbies who would otherwise
be left scratching their heads wondering why the NIS client stuff won't
work despite their best efforts. ("I set the domain name on my machine,
and /var/yp exists, but when I start ypbind and try a 'ypcat passwd,'
it says it can't bind to a server for this domain! Please help!")

*long, heavy sigh*
1995-04-02 03:10:55 +00:00
Bill Paul
84e41ecfbe Get rid of ether_addr.c: it's been moved to libc. Also add proper
declaration for ether_ntohost(). (Does anyone know what header file
is supposed to contain the declarations for the ether_addr functions?
I can't them in the SunOS includes anywhere.)
1995-04-02 01:35:54 +00:00
Joerg Wunsch
175fa6182a Update pcvt to 3.20b23
Submitted by:	Hellmuth Michaelis <hm@altona.hamburg.com>
1995-04-01 17:16:40 +00:00
Garrett Wollman
478140b95f Forgot to add these two.
Submitted by:	Mark Tinguely <tinguely@plains.NoDak.edu>
1995-03-31 21:18:13 +00:00
Garrett Wollman
94036a8cf0 Fix paths of dump files and PID file.
Added man pages for mrinfo and map-mbone.
Rewrote all man pages to use mdoc(7).

Submitted by:	Mark Tinguely <tinguely@plains.NoDak.edu>
1995-03-31 21:16:59 +00:00
Jordan K. Hubbard
ee0afc78a8 Patches to make this work with FreeBSD with the DCF77 Boeder Receiver.
This is only useful to European users (esp. Germans) as DCF77 transmits
from Frankfurt.
Submitted by:	Vincenzo Capuano <VCAPUANO@VMPROFS.ESOC.ESA.DE>
1995-03-31 07:01:11 +00:00
Jordan K. Hubbard
8d0f93af56 Missing const clashes with prototype definition in ntp_stdlib.h; fixed. 1995-03-31 02:30:15 +00:00
Poul-Henning Kamp
7dd147b45b The latest round of bugfixes here... 1995-03-29 06:13:08 +00:00
Bill Paul
8b5a6d67db Fixed stupid bug in mountd: it would seem that the kernel doesn't allow
you to push the same host into its NFS export lists twice, but mountd
tries to do it anyway. This means that putting:

/some_file_system -ro host1 host1

in your /etc/exports file causes an error. This is bogus: mountd should be
smart enough to ignore the second instance of host1. This can be a problem
in some configurations that use netgroups. For example, each host in my
netgroups database is has two entries:

startide (startide,-,) (startide.ctr.columbia.edu,-,)

When mountd sees this, it tries to put startide.ctr.columbia.edu into the
export list *twice*. Just listing 'startide' /etc/exports list will also
screw up because mountd will try to resolve the netgroup 'startide' instead
of the hostname 'startide.'

My solution is watch for duplicate entries in get_host() and mark them
as grouptype GT_IGNORE, which do_mount() will now cheefully throw away.
This is a bit of a kludge, but it was the least obtrusive fix I could
come up with.

Also silenced a compiler warning: arguments passwd to xdr_long() should
be u_long, not int. :)
1995-03-26 23:36:38 +00:00
Poul-Henning Kamp
37c1d2607b Fixed a bug so that a delta#0 can be applied.
Fixed a typo in the generation of temp filenames.
"Blame" Joerg for the man-pages (and clarify a couple of minor points).
Most appreceiated Joerg!
1995-03-26 20:09:52 +00:00
Bill Paul
bdb44d5fb6 Stop callbootd from dumping core when attempting to directly query a
bootparam server on a host that isn't running bootparamd: if clnt_create()
comes back with a NULL pointer, bail out with an error.
1995-03-26 03:15:39 +00:00
Bill Paul
7112864e5c Make sure we free() the result returned to us by yp_match(). 1995-03-26 02:37:00 +00:00
Joerg Wunsch
de8020d29b Call open(2) and mkdir(2) with 0666/0777 as the `mode' argument (as
opposed to 0644 or 0755).  It's finally still masked by the process'
umask(2), and it does not make sense to restrict it further than that.

This (especially for mkdir(2)) was causing major headaches for the CVS
tree, since a member of group cvs was later not able to get cvs
checkout permission for the mirrored tree failed to write the lock file).
1995-03-25 20:46:51 +00:00
Joerg Wunsch
fee6e7cc49 Added a man page for the ctm(1) command, as well as a format description
for the CTM deltas.

Largely based on Poul-Henning's README, and the source code.
1995-03-25 18:14:26 +00:00
Poul-Henning Kamp
f551164802 Make sure exit() is sensible; 1995-03-24 21:36:32 +00:00
Poul-Henning Kamp
15a9992ca2 Modes on dirs were decimal by mistake.
Submitted by:	joerg
1995-03-24 21:33:20 +00:00
Jordan K. Hubbard
72a3d44887 Add what looks to be the right fix to this bogus code. 1995-03-24 16:07:09 +00:00
Jordan K. Hubbard
5390e1a7be kbdfont -> vidfont for greater commonality with kbdcontrol/vidcontrol 1995-03-24 04:36:19 +00:00
Jordan K. Hubbard
9774e9cfaf Bring in the kbdmap/kbdfont utilities from Wolfram Schneider.
Renamed them to make them more consistent with kbdcontrol/fdcontrol/etc.
1995-03-24 00:52:28 +00:00
Bill Paul
d038db90e8 Re-enable +::::::::: wildcards that I had previously disallowed.
Note: if you put +::0:0:::::: in /etc/master.passwd as your only NIS
entry, it will cause all NIS uids and gids to be remapped to zero. This
is *intentional*. That's the way it's supposed to work. Enabling NIS with
no remapping at all is done with +:::::::::, not +::0:0::::::. Similarly,
+:::::::::/bin/csh will remap the shells of all NIS users to /bin/csh.
Or, you could do +wpaul:::::::::/bin/csh to remap NIS user wpaul's shell
to /bin/csh but leave everyone else alone.
1995-03-23 22:31:11 +00:00
Garrett Wollman
db041b142b Enable DES if NOCRYPT is not set and and the user has the secure sources. 1995-03-23 19:13:04 +00:00
Bill Paul
34876b9137 Summarily enable YP as soon as any a '+' is detected instead of generating
special values when +user substitutions are in effect. The new getpwent
code can handle all the special cases itself now.
1995-03-23 17:22:37 +00:00
Rodney W. Grimes
ecdb980f93 Convert from using old root.cache to new named.root 1995-03-23 08:43:07 +00:00
Bill Paul
ad5d3ccd4d - Add support for embedding special entries in the password databases
for +@netgroup/-@netgroup entries. This saves the getpwent functions
from having to do all the work.

- Fix potential bug: when pwd_mkdb writes the YP-enabled flag to the secure
password database, it uses the wrong database descriptor. (It uses the
descriptor from the non-secure database, which is already closed by the time
things are being written into the secure dastabase).
1995-03-23 00:54:57 +00:00
Poul-Henning Kamp
ec71951908 Make extra arguments be subdirs to go through. 1995-03-19 21:26:00 +00:00
Joerg Wunsch
b2fbeb9a91 Finally applying my own fix. :-)
>Description:

ctm(1) sometimes did not free up all used resources (open pipes and
processes, heap memory).  This happened whenever one of the passes
ended prematurely, and it became very apparent when running it on
a bunch of already applied deltas, resulting in a ``gunzip: resource
temporarily unavailable'' due to the maxproc # exhausted.
1995-03-19 13:42:54 +00:00
Ollivier Robert
475239d0d8 Add a missing "\" in a printf before the "n". 1995-03-19 12:01:23 +00:00
Poul-Henning Kamp
9def6b02b2 Make the +%d-%d part +%03d-%03d so ls(1) sorts the files more sensibly. 1995-03-19 06:09:01 +00:00
Garrett Wollman
d99c7a23fa This set of patches enables IP multicasting to work under FreeBSD. I am
submitting them as context diffs for the following files:

sys/netinet/ip_mroute.c
sys/netinet/ip_var.h
sys/netinet/raw_ip.c
usr.sbin/mrouted/igmp.c
usr.sbin/mrouted/prune.c

The routine rip_ip_input in raw_ip.c is suggested by Mark Tinguely
(tinguely@plains.nodak.edu). I have been running mrouted with these patches
for over a week and nothing has seemed seriously wrong. It is being run in
two places on our network as a tunnel on one and a subnet querier on the
other. The only problem I have run into is that mrouted on the tunnel must
start up last or the pruning isn't done correctly and multicast packets
flood your subnets.

Submitted by:	Soochon Radee <slr@mitre.org>
1995-03-16 16:25:55 +00:00
Stefan Eßer
619e03fa69 Reading NCR registers is not secure at all times, so prevent
an ordinary user from doing this. (Problem pointed out by
Guido van Rooij).
1995-03-16 15:10:11 +00:00
Stefan Eßer
abfefaa786 Fix "-ssync=xx" option. 1995-03-14 21:12:26 +00:00
Atsushi Murai
108136679f Adding GETTING START and so on.
Submitted by:	amurai@spec.co.jp
1995-03-12 12:03:48 +00:00
Atsushi Murai
ca2b8d6944 Add BUGS and few explanation.
Submitted by:	amurai@spec.co.jp
1995-03-11 16:36:30 +00:00
Atsushi Murai
84b8a6ebd1 1.Reducing cpu usage at off connection.
2.Implment Redail function as working correctly.
3.Clean up a code as I notice.
4.Now, RTT getting close to 50ms with ISDN/TA 38400bps !!

Reviewed by:	amurai@spec.co.jp
Submitted by:	amurai@spec.co.jp
1995-03-11 15:18:55 +00:00
Poul-Henning Kamp
5dad287ead The changes to support the new flags in the vn driver. 1995-03-11 09:33:25 +00:00
Poul-Henning Kamp
14c5b2ae27 Added the kernbb program. No man-page yet :( 1995-03-10 08:53:55 +00:00
Rodney W. Grimes
a5d1fbe54d Need /usr/src/sbin/i386 in srcdirs to get fdisk. 1995-03-10 08:36:19 +00:00
Paul Traina
35040f6884 Remove Matt Day patch (handled elsewhere in 8.6.11) 1995-03-10 05:12:47 +00:00
Paul Traina
d986f3c961 Merge CSRG branch changes into main branch 1995-03-10 05:08:18 +00:00
Paul Traina
2a3b769d01 Merge sendmail 8.6.11 patches into CSRG branch 1995-03-10 04:50:28 +00:00
Andrey A. Chernov
b603d90c20 Fix suspended vipw hangs
Obtained from: NetBSD
1995-03-09 21:53:12 +00:00
Andras Olah
c8f313a356 Add -I.' to CFLAGS in order to fix the make depend' problem. 1995-03-09 12:15:17 +00:00
Andrey A. Chernov
f01592bbca o more options
o less restrictive, you can choise uid, gid ...
	o invite user into some groups
	o encrypted passwords with crypt
	o batch mode (for instance, this works now:
	  $ adduser -batch jkh guest,uuadmin "Jordan K. Hubbard" passwd
	  see manpage for more details)

Submitted by: Wolfram Schneider <wosch@cs.tu-berlin.de>
1995-03-08 22:44:37 +00:00
Andras Olah
9520a7526d Make tcpdump understand the T/TCP (RFC-1644) options. Some extra sanity
checks were also introduced to the tcp_print function so it doesn't try
to interpret TCP options beyond the length of the sniffed packet.
1995-03-08 13:13:01 +00:00
Andras Olah
cafb7c1233 Upgrade tcpdump and tcpslice to version 3.0
Obtained from: ftp.ee.lbl.gov and Vern Paxson <vern@ee.lbl.gov>
1995-03-08 12:53:42 +00:00
Peter Dufault
84d84db480 Change warning message for when a device is wired to a floating
host adapter to something hopefully clearer.  Take into account
that "wnum()" writes into a static buffer in the warning.
1995-03-07 11:03:42 +00:00
Joerg Wunsch
31aafd54c3 Adding the various documentation files that are accompanying
the regular pcvt distribution under pcvt/Misc.
1995-03-05 22:50:24 +00:00
Joerg Wunsch
0e679f8b28 Upgrade to beta 3.20/b22 1995-03-05 22:47:12 +00:00
Joerg Wunsch
9fef3e04b3 Adding the various documentation files that are accompanying
the regular pcvt distribution under pcvt/Misc.
1995-03-05 22:44:03 +00:00
Bill Paul
7757d94047 ether_addr.c:
- Implement ether_hostton()
- Implement ether_aton()
- Modify ether_aton() and ether_ntoa() to match the semantics of the
SunOS versions of these functions.
- Neaten up ether_hostton() and ether_ntohost() a little.
- Get rid of ether_print() since it isn't needed for rarpd and it isn't
documented as a standard ethers(5) function.

rarpd.8:

- Make it clear that the 'ipaddr' that rarpd looks for in /tftpboot
is actually in hexadecimal (as in /tftpboot/803B4032) since those who
are not versed in the black art of system administration are not likely
to know this.
1995-03-05 22:04:05 +00:00
Bruce Evans
84428d8465 Don't depend on <stdio.h> bogusly including <sys/types.h>. 1995-03-05 02:19:21 +00:00
Poul-Henning Kamp
920052bded Look at the .ctm_status file and ignores all patches already applied.
Reviewed by:	phk
Submitted by:	J Wunsch <j@uriah.heep.sax.de>
1995-03-04 20:36:46 +00:00
Andrey A. Chernov
c08bf286df Use ASCII lock, like everything else does
Submitted by: John Capo <jc@irbs.com>
1995-03-04 00:05:30 +00:00
Bill Paul
112072599b Gave rarpd back the ability to poke temporary entries into the arp
table; arptab.c is really a hacked up version of arp.c that only
supports adding temporary entries. (This stuff is nasty -- I wish I
knew what was so wrong with SIOCSARP/SIOCGARP/etc... that made the
BSD developers decide to take it out.) The idea here is that the
client issuing the rarp is expected to be in the middle of booting
and would therefore be unable to answer arp queries from other machines
on the wire. Having rarpd stuff a temporary entry for the booting
host into the local arp table helps keep arp requests from going unanswered.

Also added ether_print() and ether_ntoa() to the ether_addr.c module.
Eventually I'll get ether_aton() and ether_hostton() written and
then this file can be dropped straight into libc. (Assuming no one
objects, of course. :)
1995-03-03 22:20:15 +00:00
Dima Ruban
50d387a36e remove option "-s saver" from usage() 1995-03-03 21:21:24 +00:00
Peter Dufault
f88f624943 Fixed bug with wiring down given SCSI bus. 1995-03-03 19:00:39 +00:00
Andrey A. Chernov
ad17fe5cc1 Fix CurHostName ($m macro)
Submitted by: eric@cs.berkeley.edu
1995-03-03 02:06:39 +00:00
Bill Paul
c7f2725d43 Took out .include "../../Makefile.inc" which shouldn't be needed now that I
put a proper Makefile.inc in the top level of the bootparam heirarchy.
(Someday I'll learn. *sigh*)
1995-03-02 22:00:33 +00:00
Bill Paul
c529ee1973 Whoops. I knew I was forgetting something. 1995-03-02 21:24:54 +00:00
Bill Paul
8c9c9e9743 Add rarpd. 1995-03-02 06:44:30 +00:00
Bill Paul
67ba270de8 This commit was generated by cvs2svn to compensate for changes in r6823,
which included commits to RCS files with non-trunk default branches.
1995-03-02 06:41:40 +00:00
Bill Paul
9636a39a61 Obtained from: An old BPF release packaged with the tcpdump-2.0 source code.
"Yes Virginia, there is a rarpd."

(Before anyone asks, this *not* the rarpd from NetBSD. It did come from
the same place as theirs, however.)

This is a port of the rarpd program included with the tcpdump-2.0
source code (which I finally unearthed after scrounging around
some of the darker corners of the Internet). It's as close to the
original as I could keep it except for the following changes:

- The original program was based on an older version of the Berkeley
  Packet Filter which used different filter programming instructions.
  Fortunately, an updated RARP packet filter is available right in the
  BPF man page so this was easy to fix.

- The old code didn't know how to deal with variable length addresses
  in ifreq buffers. This has been fixed.

- Some byte order weirdness had to be fixed. The sanity checks in
  rarp_check() needed some htons()es, and the rarp_reply() function
  needed to properly set the ether_type field in the ethernet header
  to ETHERTYPE_REVARP before transmitting the packet, otherwise
  the bytes in ether_type would wind up reversed. It is important to note
  that using htons(ETHERTYPE_REVARP) will not work. This is odd, because
  the NetBSD rarpd uses htons(ETHERTYPE_REVARP). (Praise be to tcpdump:
  I would never have been able to track this silliness down without it.)

- The update_arptab() function has been castrated. It depends on
  SIOCSARP which has been deprecated in 4.4BSD. The NetBSD people
  don't seem to be using this function either. It wouldn't be too
  hard to replace this with equivalent code from arp.c, but it
  might not be necessary.

- I put together an ether_ntohost() support function that allows
  both local (/etc/ethers) and NIS lookups. This stuff should go
  in libc at some point, but nothing else seems to need it for now,
  so it can wait a while.

As you may have guessed, you need to have the Berkeley Packet Filter in
your kernel in order to use this program. The good news is that together
with the recently added bootparamd, you can use finally use a FreeBSD
box to boot Sun boxes over the network. (This was my whole motivation
for getting this stuff to work: I have this one subnet that has a whole
bunch of Sun3 X-terminals on it with only two Sun4 workstations, both
of which are locked in peoples' offices. If those two machines crash
(and they do every so often) then none of the X-terms will boot. Now I
can use a spare PC that I have as a boot server. :)
1995-03-02 06:41:40 +00:00
Peter Dufault
c30c84ed1f Added configuration for SCSI devices wired in place. The documentation
is in "man 4 scsi".
1995-03-01 22:34:05 +00:00
Jordan K. Hubbard
60e2f05af7 My patch this morning was not complete. I never tested make install - stupidly
thinking that it would work :( The install program never get a destination
directory. Here is another patch that should also be added. I think this
should be the last one for these makefiles :)

[Note:  I realize that there are more things wrong than this, but this should
at least get the tree compiling again! -jkh]

Submitted by:	John Hay <jhay@mikom.csir.co.za>
1995-03-01 20:36:20 +00:00
Justin T. Gibbs
ce584e16e7 Implement "clean" entries for device config entries.
Submitted by: Pointed out by Bruce Evans <bde@zeta.org.au>
1995-03-01 10:09:03 +00:00
Poul-Henning Kamp
1214e6da66 The current bootparamd makefiles break if you do a make obj first. It does
work if you don't have the obj link. Here is a patch for it. It will still
work if you don't have an obj link:)

(I stuck a ${DESTDIR} in front of the absolute path to /usr/include... /phk)
Reviewed by:	phk
Submitted by:	John Hay <jhay@mikom.csir.co.za>
1995-03-01 08:04:40 +00:00
Poul-Henning Kamp
d47cc3d78a Added lock-files, so we should know if the machine panic'ed in the middle
of an "apply".
1995-02-28 20:52:56 +00:00
Poul-Henning Kamp
eafbf78d25 Latest updates to this. 1995-02-27 22:26:58 +00:00
Ugen J.S. Antsilevich
c120979990 same 1995-02-27 19:48:19 +00:00
Bill Paul
fb07c04ab0 Add entry for bootparamd and friends. 1995-02-27 19:21:16 +00:00
Atsushi Murai
41db65649e Fixing minor bug and allow help(Not for all command) and quit
but not close line connection by "quit all" command if not
authorized.

Reviewed by:	amurai@spec.co.jp
Submitted by:	tony-o@iij.ad.jp amurai@spec.co.jp
1995-02-27 10:57:54 +00:00
Atsushi Murai
b808c7565b Compile error occured by missing auth.h/cdefs.h
Reviewed by:	amurai@spec.co.jp
1995-02-27 03:18:28 +00:00
Atsushi Murai
d71413016a Re add ppp entry causing by missing auth.h/cdefs.h
Reviewed by:	amurai@spec.co.jp
1995-02-27 03:16:48 +00:00
Bill Paul
b9fefab743 Obtained from: The Xkernel source distribution
I hope I'm doing this right.

This is an initial version of bootparamd for FreeBSD based on a public
domain rpc.bootparamd implementation by a gentleman named Klas Heggemann.
This program has apparently been around for a while. The README explicitly
lists the code as public domain, so I guess it's safe to use.

This program is needed for booting diskless SunOS and Solaris machines.
rarpd is also required, but that's in the works too.

I have made two changes to this code:

- Implemented NIS lookups. If /etc/bootparams contains a '+' then the
  bootparams map is consulted.

- Allow 0.0.0.0 as a user-specified router address. The SunOS rpc.bootparamd
  returns this value in many cases.
1995-02-26 23:40:53 +00:00
Jordan K. Hubbard
be4ddfeba3 Take ppp out until it works again - there's actually stuff missing from
the merge.
1995-02-26 18:58:49 +00:00
Jordan K. Hubbard
a860ee982e I assume someone had a good reason for breaking this? Try again!
For now, I'll content myself with fixing the tree.
1995-02-26 18:20:36 +00:00
Atsushi Murai
53c9f6c0c4 New user Process PPP based on iij-ppp0.94beta2.
o Supporting SYNC SIO device (But need a device driver)
     - add "set speed sync"
   o Fixing bug for Predictor-1 function.
   o Add new parameter that re-sent interval for set timeout commands.
   o Improving RTT (Round Trip Time) and reducing processor time.
     - Previous Timer service was using polling, and now using
       SIGALRM ;-)
     - A 0.94beta2 will not work correctly....

   -- Follows are additinal feature not including 0.94beta2
   o Support Proxy ARP
     - add "enable/disable proxy" commands
   o Marging common routine in CHAP/PAP.
   o Enhancing LCP/IPCP log information.
   o Support local Authfication connection on port 300x and tty.
     - You can set up pair of your "hostname -s" and
       password in ppp.secret. if either ppp.secret file nor
       your hostname line don't exist, It will notify a message
       and working as same as previous version.(Backword compatibility)
     - If you did set up them, It's allow connection but nothing to do
       except help and passwd command.
     - add "passwd yourpasswd" commands
   o Support afilter - keep Alive filter that a packet can send/receiving
     according to ifilter/ofilter but doesn't count it as preventing idle
     timer expires.
     - Same syntax of other filters.
   o Fixing bugs reported by current user for previous one. Thanks !!

Reviewed by: Atsushi Murai (amurai@spec.co.jp)
1995-02-26 12:18:08 +00:00
Bill Paul
6a4f61a2ab Submitted by: Sebastian Strollo <seb@erix.eriksson.se>
Fixes to ypbind:

- Correctly report the fact that we've bound to a new server when
logging the 'server OK' message.

- Report 'server not responding' just once instead of every
5 seconds while searching for a new server. (Prevents overstuffing
the syslog.)

- Apply patch from Sebstian Strollo to implement '-s' (secure) flag.
ypbind will reject connections from servers that do not originate
from a reserved TCP port.

- Apply patch from Sebastian Strollo to detect when a YP server has
crashed and come back up on a different port number.
1995-02-26 04:42:48 +00:00
Bruce Evans
2c9da268b6 Remove dbsym. 1995-02-26 02:33:09 +00:00
Paul Traina
cb95dc2435 Update to use new calling conventions 1995-02-25 20:14:31 +00:00
Poul-Henning Kamp
fb7f926e3d Add a '-l' option, which lists the argv[0]'s we will respond to. This will
simplify the src/release Makefile quite a bit.
1995-02-25 07:25:31 +00:00
Poul-Henning Kamp
286e9a77d2 (Not tested yet. I may insist that ctm be invoked with absolute path. /phk)
This patch fixes the concurrency problem, and adds a possibly useful -f switch
(which you can read about in the man page :-) ).  It also removes the absolute
path from the invocation of ctm.  I'll write a note about how to use a script
with sendmail and procmail or some such, and people can fix their PATH there.

BTW, this patch changes ctm_rmail.1, ctm_rmail.c and error.c in the ctm_rmail
directory.

Stephen.

Reviewed by:	phk
Submitted by:	Stephen McKay <syssgm@devetir.qld.gov.au>
1995-02-25 05:10:18 +00:00
Poul-Henning Kamp
28db07dea2 Just a precaution: ctm will not accept '..' in paths anymore.
I'm never going to generate one, so this is a guard against hackers mostly.

Reviewed by:	phk
Submitted by:	Stephen McKay <syssgm@devetir.qld.gov.au>
Obtained from:
1995-02-25 05:02:18 +00:00
Poul-Henning Kamp
b117ae8a85 I (phk) blundered with the last change. Make it right & better now.
Reviewed by:	phk
Submitted by:	John Hay <jhay@mikom.csir.co.za>
1995-02-24 05:41:24 +00:00
Poul-Henning Kamp
6d5be8a5d4 OK, we changed our mind again: -ln -s ... 1995-02-24 04:16:26 +00:00
Poul-Henning Kamp
0aba884c7d Make sure link to /etc/rmt happens.
Now I know that there was talk of moving it to the release/Makefile or the
etc/Makefile, but I don't think it was ever decided where.

Reviewed by:	phk
Submitted by:	John Hay <jhay@mikom.csir.co.za>
1995-02-23 19:40:48 +00:00
Ugen J.S. Antsilevich
c8183bbb29 Fix(it was 1 character actually:) 1995-02-23 11:18:35 +00:00
Poul-Henning Kamp
d742998bc1 Make us a little safer, by writing to a tempfile, and rename when done.
Still needs more locking I belive.
1995-02-23 04:51:36 +00:00
Paul Traina
f098a2f451 Import 8.6.10 release notes 1995-02-23 00:53:39 +00:00
Paul Traina
950d9f5aa8 Cover 8.6.10 merge conflicts and warnings 1995-02-23 00:46:36 +00:00
Paul Traina
1c4239e90e Add watch(8) 1995-02-23 00:26:49 +00:00