Commit Graph

2184 Commits

Author SHA1 Message Date
Jordan K. Hubbard 8e1d470afc PR#2724 in NetBSD notes that newsyslog save log files even if the number
of copies to save is zero.  Incorporate suggested fix with some stylistic
cleanup to make the resulting code more readable.
Submitted-By: Kenneth Stailey <kstailey@dol-esa.gov>
1996-09-06 06:36:07 +00:00
Jordan K. Hubbard 1b455eeb3f Close a security hole in anonymous ftp setup.
Submitted-By: Jason Garman <garman@phs.k12.ar.us>
1996-09-06 05:58:27 +00:00
Bruce Evans 5b963fa12e Fixed DPADD. 1996-09-05 17:16:10 +00:00
Bill Paul ff92a7a182 When updating a password via the standard RPC handler, reset the password
change time (pw_change) to zero.
1996-09-05 15:53:42 +00:00
Adam David 587a9ccb56 typo 1996-09-05 11:18:27 +00:00
Bruce Evans cb77de2327 Removed bogus unused `-I..' and unnecessary override of BINDIR. Didn't
clean up.
1996-09-04 22:43:20 +00:00
Bruce Evans 3335a25f21 Removed another unused `-I.' and cleaned up. 1996-09-04 22:31:32 +00:00
Bruce Evans 680b396b51 Removed unused `-I.'s from CFLAGS.
"." means the object directory, so it is just confusing to use it
when nothing is included from the object directory unless the object
directory is also the source directory.  It is confusing for "."
not to mean the source directory anyway, so used `-I.'s should be
replaced by `-I${.OBJDIR}'.
1996-09-04 22:25:35 +00:00
Peter Wemm 96169cfebd Set ${DPADD}, use +=, add $Id$ 1996-09-02 23:38:58 +00:00
Jordan K. Hubbard dc8b2dd7d1 Simplify some dialogs on the basis of my changes to ui_objects.c in libdialog.
Also update copyright notices.
1996-09-01 08:17:14 +00:00
Andrey A. Chernov 0fc122088b Unlocalize date 1996-09-01 00:48:29 +00:00
Poul-Henning Kamp d09e8179fa Some new options, useful for restoring single files or subtrees from the
deltas.

Submitted by:	A JOSEPH KOSHY <koshy@fakir.india.hp.com>
1996-08-30 10:21:00 +00:00
Peter Wemm 53a25106cd Use a variable to prevent multiple inclusion from duplicating CFLAGS args. 1996-08-30 03:03:21 +00:00
Peter Wemm 22ac97e25c Delete temporary man page rules 1996-08-30 03:01:34 +00:00
Peter Wemm f1c72c4c70 Hmm, well, whaddya know? ypserv was making calls to the undocumented
private internal _gethostbydnsname() resolver functions..
1996-08-30 01:17:47 +00:00
Peter Wemm 7e3456fb69 delete bind, add named named.reload named.restart ndc 1996-08-29 22:20:58 +00:00
Peter Wemm b8f4387390 kill these, they were declared a bad idea. 1996-08-29 22:19:21 +00:00
Peter Wemm cfc2eae116 build bind-4.9.4-P1 named.restart in it's own directory 1996-08-29 21:48:19 +00:00
Peter Wemm 353e0183c3 build bind-4.9.4-P1 named.reload in it's own directory 1996-08-29 21:47:33 +00:00
Peter Wemm 0acc06b17e build bind-4.9.4-P1 ndc in it's own directory 1996-08-29 21:46:46 +00:00
Peter Wemm bee5504dbe Build bind-4.9.4-P1 nslookup 1996-08-29 21:40:09 +00:00
Peter Wemm 0be1da2627 Revert back to building bind-4.9.4-P1 in seperate directories... 1996-08-29 21:38:16 +00:00
Peter Wemm 9e639d7d7b Swing the SUBDIR entry across for the new bind-4.9.4-p1 dir.. 1996-08-29 20:15:11 +00:00
Peter Wemm 1355933456 This commit was generated by cvs2svn to compensate for changes in r17897,
which included commits to RCS files with non-trunk default branches.
1996-08-29 19:43:00 +00:00
Peter Wemm 8fedc449da Import some bmake glue for bind-4.9.4-p1.
This is based on Paul Vixie's makefiles, but some of it doesn't look much
like it now.
1996-08-29 19:43:00 +00:00
Wolfram Schneider b8923d4cc0 [HISTORY] command appeared in Version 1 AT&T UNIX
Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
1996-08-29 18:06:19 +00:00
Bill Paul 273804e22c Add one line fix to stop my old 'don't barf if you see the same
hostname/IP twice on same line in /etc/exports' fix from dumping core
due to bogus /etc/exports entries.

Submitted by: Toshihiro Kanda <candy@fct.kgc.co.jp>
1996-08-29 14:20:57 +00:00
Adam David 718737f0fb typo police
I couldn't make any sense of the sentence "Eval variables in this file." so I
left it alone.

also allow creation of new local group when NIS groups are used.
this can probably be done more elegantly, and needs more thought.
1996-08-28 17:54:14 +00:00
Wolfram Schneider 5a80fb277e sync copyright with /usr/share/examples/etc/bsd-style-copyright 1996-08-27 20:04:45 +00:00
Garrett Wollman 95aa1d06a2 Merge new routed from vendor branch. 1996-08-27 16:22:05 +00:00
Garrett Wollman 776589ccad Initial revision 1996-08-27 16:12:46 +00:00
Paul Traina 30959c76e0 Run as daemon.daemon, not nobody.daemon 1996-08-26 17:01:58 +00:00
Paul Traina 28f0ced1ee Fix buffer overrun, and run as nobody 1996-08-25 21:37:11 +00:00
Bill Paul 81ff470f7a It appears that with FreeBSD-current, we need to set the ethernet
frame type in network byte order. The htons() that wasn't needed in
2.1 is now required in 2.2.

Ultimately, this rarpd should be replaced with the more recent one
supplied with the new BPF distribution.
1996-08-24 23:05:08 +00:00
Mike Pritchard 1f8be615ce Convert to mdoc format. 1996-08-24 16:34:23 +00:00
Mike Pritchard c0b0bcf4d3 Use the .Bx macro where appropriate. 1996-08-23 20:36:11 +00:00
Jordan K. Hubbard fc8cb16597 Conditionalize some annoying debug statements, update the docs. 1996-08-23 07:56:06 +00:00
Mike Pritchard 85cf659a76 Use the .Fx macro where appropriate. 1996-08-23 00:57:08 +00:00
Wolfram Schneider aa7e9146d7 bye, bye 1996-08-22 17:41:22 +00:00
Paul Traina 6ea43f98e3 Fix typo in last commit...sigh 1996-08-21 21:39:44 +00:00
Mike Pritchard c200bf2b82 Add the -o option to the usage line. 1996-08-21 20:54:38 +00:00
cvs2svn f93cd6c4f3 This commit was manufactured by cvs2svn to create branch 'SENDMAIL'. 1996-08-21 20:47:59 +00:00
Mike Pritchard c993b63599 Oops, forgot to actually add the new man page. 1996-08-21 20:47:58 +00:00
Mike Pritchard 96d93606b9 Add a man page for mailstats(8).
Obtained from:  NetBSD
1996-08-21 20:45:20 +00:00
Paul Traina 768bb613dd Change DISTDIR to TCPDUMP_DISTDIR 1996-08-21 17:11:41 +00:00
Andrey A. Chernov 17c2b3452d Bugfix: all device counts >= 256 was broken, they truncated by % 255
because of u_char count field size. It hits when device
header file already present.
1996-08-21 17:00:54 +00:00
Paul Traina 9f6ca50ce7 Uniquely name the distribution directory variable so that it can be overridden
for multiple packages at the same time.
1996-08-21 16:50:15 +00:00
Peter Wemm 3f22340731 Decode ICMP_UNREACH_FILTER_PROHIB responses as !F, from RFC1812.
Suggested by: Bill Fenner <fenner@parc.xerox.com>

Additionally, print unrecognised ICMP_UNREACH codes numerically. eg, code
15 would show up as !<15>.
1996-08-21 05:59:19 +00:00
Peter Wemm e86f5a4cd3 Back out part of my previous commit. The bug was fixed over 12 months
ago in FreeBSD more cleanly.
1996-08-21 04:31:28 +00:00
Gary Palmer 2f425539d6 Pickup VERSION from the tcpdump sources in contrib/tcpdump. Allows
`make world' to work again.
1996-08-21 04:14:36 +00:00
Wolfram Schneider 7e0b7d4a87 add pathnames.h, -Wall cleanup 1996-08-20 23:51:20 +00:00
Jordan K. Hubbard d17e19f475 Clean up the english a little, having made the mistake of reading it. 1996-08-20 21:27:18 +00:00
Wolfram Schneider f99f7b462b run pwd_mkdb with new check option [-c] to verify correctness
of /etc/master.passwd
1996-08-20 19:57:23 +00:00
Paul Traina 9f3816ea5d Fix up path 1996-08-20 05:44:01 +00:00
Paul Traina 3629a694ff Grab tcpdump out of src/contrib/tcpdump 1996-08-19 21:57:10 +00:00
Wolfram Schneider e2ab8bac10 New option: [-c]
Check if the password file is in the correct format. Do not
        change, add, or remove any files.
1996-08-19 16:03:15 +00:00
Peter Wemm c3944f3dd1 Fix a bug, it was returning a pointer to a variable on the stack, instead
of the specially strdup()'ed version.
1996-08-19 14:28:48 +00:00
Peter Wemm 1340e5b6fe Define ETHERS_SERVICE, since our OS provides it. Otherwise, you
can't do a "tcpdump 'gateway foo'" unless it's in /etc/ethers - it wasn't
reading the NIS tables.
1996-08-19 14:27:14 +00:00
Wolfram Schneider 4b2b2ee3e1 ``make install'' should not install the symlink /usr/sbin/rmt -> /etc/rmt
Only ``make distribution'' in src/etc/Makefile overrides things in /etc

Pointed out by: joerg
1996-08-18 11:05:08 +00:00
Peter Wemm b011f9fd8f Fixes from NetBSD:
- inet_ntoa() returns a pointer to a static buffer, dont use it twice
   in the same printf().
 - prevent the possibility of never timing out
 - Report two more ICMP error types (prohibited nets etc)
And some (commented out) enhancements that I use, but some don't like.
1996-08-17 10:37:28 +00:00
Wolfram Schneider b4356447c7 New options
-K      Run as command kbdmap(1).
    -V      Run as command vidfont(1).
    -p, -print
            Print description  of available keymaps or fonts to
            stdout and exit.

Document that users should not choose MSDOS codepage keymaps or fonts.
1996-08-16 13:26:44 +00:00
Andrey A. Chernov 0d9bb52dbb Remove -p from SYNOPSIS 1996-08-16 12:34:47 +00:00
Andrey A. Chernov de1fd44033 Remove -p option from getopt string, all corresponding code
already deleted
1996-08-16 12:12:53 +00:00
Peter Wemm 28c28b06ed rpc.rstatd -> rpc.lockd typo
Noticed by: tholo@sigmasoft.com (Thorsten Lockert)
1996-08-16 09:44:40 +00:00
Wolfram Schneider 8a368b34b0 Do not add an user to a group if the group is also the login group. 1996-08-14 19:06:04 +00:00
Adam David 7ba57172c1 chown(8) and chgrp(1) directories once only 1996-08-14 18:13:58 +00:00
Wolfram Schneider 2e8b782306 Do not send "welcome mail" as default. If you want this feature
you can still enable it. Better, use mail client like elm or pine.

Requested by: Jordan
1996-08-13 21:50:51 +00:00
Bill Fenner aba3a4ce1b Fix last commit (and PR bin/1489) by creating both sockets before
setuid().
1996-08-13 16:28:59 +00:00
Peter Wemm 403b820b67 Fix a few minor type problems that turned up with gcc-2.7.2 1996-08-13 09:21:38 +00:00
Peter Wemm 2db86e5b74 Add RTF_STATIC to default route's flags in the hope that routed will no
longer remove it while it is running.
1996-08-13 09:19:45 +00:00
Peter Wemm b49090e691 Add RTF_STATIC to flags when creating a default route. Hopefully this
will stop routed from removing it if it is also running.
1996-08-13 09:16:49 +00:00
Paul Traina 7e31b4b1be Previously, if the dial script had any problems, pppd would simply
bomb out.  Unfortunately, FreeBSD's sio driver and certain internal
modems don't get along very well, which can cause the serial port to
wedge until it is closed and reopened.

Add new variable, connect-max-attempts, default = 1 (to mimic previous
behavior).  If > 1, will try up to "n" times to dial remote site before
aborting.
1996-08-11 17:29:37 +00:00
Julian Elischer 7356460fe3 Reviewed by: various
Submitted by:	archie@whistle.com

changes to allow inetd to bind to a single interface
for more complicated options see xinetd in ports.

Obtained from: whistle.com
1996-08-09 22:20:24 +00:00
Adam David d91013b58d was missing @ 1996-08-09 17:55:18 +00:00
Bill Fenner f1284d7a51 Drop setuid ASAP, to minimize code executed as root.
Reviewed by:	pst
1996-08-09 06:00:53 +00:00
Poul-Henning Kamp 4b7d97414e Make broadcast clients work. 1996-08-06 11:32:25 +00:00
Paul Traina 18fb104c5a Gratuitous whitespace change so that I can commit the source of the recent
buffer overflow patch.
Reviewed by:	pst
Submitted by:	Dave Andersen <angio@aros.net>
1996-08-05 00:50:02 +00:00
Paul Traina b04b7cf55d Fix up some more buffer overflow problems. 1996-08-05 00:31:27 +00:00
Bill Paul d2c75ac3d8 Fix a couple of bogons. The first two were brought to my attention
by Peter Wemm:

- In yppasswdproc_update_1_svc(), I wasn't paying attention and put
  a couple of lines of code _after_ a return() instead of before.
  (*blush*)

- The removal of certain temp files didn't always work (this showed
  up mostly if you were using /etc/master.passwd as your NIS passwd
  template instead of /var/yp/master.passwd). This is because the
  whole temp file creation mechanism I was using was tragically
  broken (you can't rename across filesystems).

This problem I found myself:

- If you have a very large password database (30,000 or more entries),
  there can be a delay of several seconds while pw_copy() copies the
  ASCII template file and subsitutes in the modified/new entry. During
  this time, the clnt_udp() code in the RPC library may get impatient
  and retry its request. This will get queued at the server and be
  treated as a second request. By then the password change will have
  been completed and the second request will fail (the old password is
  no longer valid). To attempt to fix this, we save the IP address and
  port of each request and ignore any subsequent requests from the
  same IP and same port that arrive within five minutes of each other.
1996-08-04 22:13:05 +00:00
Poul-Henning Kamp 154fd6a990 Enhance crunchgens understanding of our new /usr/obj/`pwd` strategy. 1996-08-04 20:38:53 +00:00
Jordan K. Hubbard 96a9d7fb41 Try to make screen update more efficient (less flickering) by more
judicious use of dialog_clear_norefresh().
1996-08-03 10:11:56 +00:00
Jordan K. Hubbard 9a8104ec99 Make the same fix to the disk partition editor screen. 1996-08-03 05:29:24 +00:00
Jordan K. Hubbard f48bd9cf9e Fix an embarassing bogon in the key input code. I'll roll another snap
boot floppy for this one..
1996-08-03 05:25:56 +00:00
Nate Williams a076b72573 Use the defines and macros defined in /sys/pccard/cis.h to make the code
easier to understand.  LOTS more work needed in this area.

Inspired by:	The Nomad code
1996-08-01 15:45:46 +00:00
Jordan K. Hubbard fa05dcb5ee Whoops! VTYs return zero values for TIOCGSIZE! Work around this. 1996-08-01 13:47:03 +00:00
Jordan K. Hubbard a0779fbe20 Don't query DNS if we haven't got it configured. 1996-08-01 12:59:54 +00:00
Jordan K. Hubbard caa8175236 Handle SIGPIPE in a couple of crucial places. 1996-08-01 12:35:51 +00:00
Jordan K. Hubbard 7204896f94 Put verbosity in the right place. 1996-08-01 12:13:20 +00:00
Jordan K. Hubbard 4bd2df3a33 Purely cosmetic tweaks. 1996-08-01 12:02:26 +00:00
Jordan K. Hubbard 137a1bde43 Clean up the results from getch(). 1996-08-01 11:39:49 +00:00
Jordan K. Hubbard a19596c5a8 Close PR#1542. Don't just assume 24 lines, get the tty size.
Some things may still display text on the 24th line, but that's because
they've always been screens designed to fit into a minimal real-estate
and have hardwired assumptions about the dimensions.  They'll be a little
harder to make dynamic.
1996-08-01 10:58:54 +00:00
Jordan K. Hubbard 21c7f0d4d7 Make -force work for pkg_add. 1996-07-31 21:52:33 +00:00
Jordan K. Hubbard d47f2ceb53 Add a required save/restore 1996-07-31 14:49:20 +00:00
Jordan K. Hubbard d4a5028b0c Try again. 1996-07-31 10:55:19 +00:00
Jordan K. Hubbard e8ebf53742 Don't munge keystrokes. 1996-07-31 09:29:35 +00:00
Jordan K. Hubbard 764f59345d Prevent Geometry warning messages when the disk is already "dedicated" 1996-07-31 09:10:39 +00:00
Jordan K. Hubbard 09e5a706b7 More minor tweaks (that I'm trying to get into the SNAP). 1996-07-31 06:41:29 +00:00
Jordan K. Hubbard e5034f83b0 Detect which partitions have already been created with `auto' so as not to create them
twice.

Various cosmetic tweaks.
1996-07-31 06:20:59 +00:00
Jordan K. Hubbard 50f56e483a Add MD5 checksums to packing list for all files during pkg_create and use
later at pkg_delete time to verify that you're deleting what you added.
This, of course, does NOT cover the case where a file you still need
hasn't changed!  That's a tougher problem to solve, and this provides
only the minimal amount of safety belt.  MD5 checksums are stored in comment
fields, so packages produced with these tools are backwards compatible with
the older ones.
1996-07-30 10:48:20 +00:00
Alexander Langer 59a727f3c5 "appeared in 4.2BSD.." changed to "appeared in 4.2BSD." 1996-07-27 01:20:00 +00:00
Peter Wemm 88b4ff3c6c Fix the services.byname target so that it creates search keys for the
aliases of the "official" names as well, because now that getportbyname()
does a yp match, it no longer found the entries under the alias.
This broke rsh(1), because it looks up "shell/tcp" while the official
name in /etc/services is "cmd/tcp".
1996-07-25 19:32:37 +00:00
Poul-Henning Kamp 85d8151a97 Add some explanation on TMPDIR.
Submitted by: Chuck Robey <chuckr@Glue.umd.edu>
1996-07-24 21:36:48 +00:00
Peter Wemm a6dbeb65a1 Fix typo in last commit, it seems that a hash comments out a \ at the end
of line.

Also, fix existing bug in ethers.byname, it was passing an unknown option
to yppush.  This appears to have been a cut/paste slip intended for a
$(DBLOAD) command above it.
1996-07-24 14:04:57 +00:00
Peter Wemm 57948c0b54 Add sample rules for amd.host, mostly from the AMD docs, but tweaked to fit
the FreeBSD Makefile.yp structure by me.  This allows you to have a single
amd map for all machines in a cluster.

In /etc/sysconfig, it would look something like:
  amdflags="-p -a /net -c 1800 -l syslog /host amd.host"
1996-07-24 10:48:07 +00:00
Garrett Wollman 503129209f Merge from vendor branch. The rttrace program is gone (subsumed by rtquery).
There is a new routed.h which wil be imported separately.
1996-07-22 21:13:08 +00:00
Garrett Wollman 3803d86291 Initial revision 1996-07-22 20:56:38 +00:00
Jordan K. Hubbard c6a977a04d Fix some bogus argument handling - whups! James was right.. 1996-07-22 18:43:21 +00:00
Paul Traina a13e99514d Bring in some fixes from NetBSD and re-hack our syslogd to be option-compatible
with theirs (change the -I option to -s (but leave -I in for backwards compat.)
Also eliminate an make sane some magic numbers, and fix a small bug where we'd
send to an unopened socket.

Reviewed by:	wollman
Obtained from:	NetBSD
1996-07-22 16:35:50 +00:00
Poul-Henning Kamp 5a92765501 Reset Pred1 protocol on FCS errors. 1996-07-21 13:01:27 +00:00
Adam David de88f1607c 'mkaliases' is broken (strips spaces) so don't use it,
perhaps it can be removed altogether.
corrected typos
1996-07-18 23:48:13 +00:00
Gary Palmer c3c576e86a Remove eeprom too as more unused stuff.
Pointed out by: Thomas Graichen <graichen@axp5.physik.fu-berlin.de>
1996-07-18 22:26:54 +00:00
Garrett Wollman ae10d6b570 These old files are no longer relevant to the current routed
implementation.
1996-07-18 21:15:05 +00:00
Garrett Wollman 4deb5f7924 Merge from vendor branch. We are now completely up-to-date with
respect to the ADO timezone code.
1996-07-18 19:59:09 +00:00
Garrett Wollman 712ad5544b This commit was generated by cvs2svn to compensate for changes in r17211,
which included commits to RCS files with non-trunk default branches.
1996-07-18 19:40:52 +00:00
Garrett Wollman 22c654616a Second part of the timezone code import for version 96h. This includes
a number of bug fixes to the compiler (which bugs would previously
have caused undesirable behavior during transition times).
1996-07-18 19:40:52 +00:00
Doug Rabson 9fbfdd118f Import fixes from NetBSD to print NFSv3 packets.
Obtained from: NetBSD
1996-07-18 14:53:04 +00:00
Joerg Wunsch 35ab66af3b Correct the Unix programmer's error #1: "char c = getc();".
Closes PR # bin/1386: lpf Text Filter does not w...

Submitted by:	andreas@marvin.RoBIN.de
1996-07-17 20:14:42 +00:00
David Greenman e289453542 Increased listen() queue-depth limit to 64. 1996-07-17 15:00:28 +00:00
Jordan K. Hubbard 94dfd13efe 1. Fix the CD installation bogon for Novice install I mentioned.
2. Add some code for dealing with a ports collection on the second CD now.
1996-07-16 17:11:45 +00:00
Poul-Henning Kamp d9d5922eec Make crunchgen match the new obj/ convention. 1996-07-15 11:20:21 +00:00
Jordan K. Hubbard e35a083cf9 Damn - looks like upgrade got broken along the way and it's not something
I usually test, so... :-(  Guess we'll have to slide the tag forward on
these two files - Peter, could you do the honors?  I've been up for the last
30 hours or so and I just *know* that any attempt on my part to do this would
probably end up deleting the entire repository somehow. :-)
1996-07-14 01:54:39 +00:00
Jordan K. Hubbard 6bcca21f51 Make CD version clash non-fatal. 1996-07-13 05:48:44 +00:00
Jordan K. Hubbard a420652230 Back out my change for Peter which did transfer timings based on current
chunk rather than distribution - it's just caused the numbers to fluctuate
too wildly, sorry Peter! ;-(
1996-07-13 05:44:51 +00:00
Jordan K. Hubbard 5cec7fa56a Fix a bogon in the Novice mode CD auto-selection. 1996-07-13 05:13:25 +00:00
Jordan K. Hubbard f6d3326b0c Fix EBUSY checking in devices.c - DTRT when it's detected on a CD. 1996-07-13 05:09:29 +00:00
Jordan K. Hubbard dab0e70808 Remove some suspect sector size calculations which are also the source
of some confusing messages from newfs (just judging by the number of people
who point them out, anyway).
1996-07-12 15:24:49 +00:00
Gary Palmer 240995227c Small changes so that this actually stands a chance of doing the
right thing...
1996-07-12 13:12:46 +00:00
Jordan K. Hubbard 10712e5198 Fix something I broke with CDROM installation (well, I knew my first
test CD would turn at least one bug up :-).
1996-07-12 11:14:15 +00:00
Bruce Evans 6151b31757 Fixed brackets in usage message.
Reformatted some of recent changes to KNF.
1996-07-12 08:20:28 +00:00
Jordan K. Hubbard bd5706a78a Make the menu height calculation actually work.
Make a menu more self-explanatory at user request.
1996-07-11 18:37:48 +00:00
Nate Williams fd87c5bd16 In num_tok, allow the user to specify '0' as plain '0' instead of
forcing them to use '00', and/or '0x0'.

Submitted by:	Johann Tonsing <jtonsing@mikom.csir.co.za>
1996-07-11 15:04:43 +00:00
Nate Williams 265c33c027 Now that we have a manpage, don't have the 'clean' target be a NO-OP. 1996-07-10 18:36:41 +00:00
Jordan K. Hubbard a0e34b44a2 Better error checking in helpfile expander.
Tart up some of the output a little.
1996-07-10 11:38:29 +00:00
Jordan K. Hubbard 8d8c0ae3e6 Document new GENERIC 1996-07-10 09:41:18 +00:00
Nate Williams dd30d06c45 Add sm_inter.h to DPSRCS so that make depend is not required to build
this.
1996-07-09 22:40:39 +00:00
Andrey A. Chernov af83607cd1 Dump core on SIGSEGV instead of silent exiting. I saw SIGSEGV few times,
but they are VERY rare to tracking down this bug. I hope core
helps to track it down.
1996-07-09 17:40:36 +00:00
Jordan K. Hubbard 7e2ea12650 Try to prevent the status line from jumping around quite so much. 1996-07-09 16:57:14 +00:00
Jordan K. Hubbard 2126fabccf Take compat dists out of the canned set - they seem to do more harm
than good, actually, and those who actually need them can select them.
1996-07-09 16:29:00 +00:00
Jordan K. Hubbard 758aa0bcd0 Update docs to match. 1996-07-09 14:34:58 +00:00
Jordan K. Hubbard 8658743f95 A number of improvements in the way statistics are printed, add a "chroot"
option for installing distributions and/or packages to somewhere other than /,
say for a case where you're installing to an external disk on some other
machine's behalf.  More miscellaneous fixes to various problems I stumbled
across while adding this stuff.
1996-07-09 14:28:22 +00:00
Jordan K. Hubbard b03b2096b8 Don't freak out at the lack of root/swap/usr if we're running multiuser
and simply adding another disk.
1996-07-09 07:17:03 +00:00
Jordan K. Hubbard bbb2e49792 Eradicate more lurking bogons. 1996-07-09 03:07:51 +00:00
Jordan K. Hubbard 359433b8c1 Update the documentation here and there. 1996-07-08 12:00:47 +00:00
Jordan K. Hubbard 16e63bb830 Same tweak. 1996-07-08 11:07:08 +00:00
Jordan K. Hubbard de4342fa44 Fix even more lurking bogons - why do I never find these until the last
possible minute? :-)
1996-07-08 10:08:22 +00:00
Jordan K. Hubbard cf1647cd2f Whoops! Now that I'm decompressing docs into /tmp, it's important to
make sure that /tmp is there first! :-)  While I'm at it, clean up the
somewhat inexplicably bogus Mkdir() function.
1996-07-08 08:54:36 +00:00
Bill Paul 79acf67fce Re-implement the DB handle cache using a circular queue and manage
it with the CIRCLEQ macros. This simplifies the code a little, makes
it somewhat easier to read, and may be a little faster. (Actually I think
the performace is about the same.)

Also, in the non DB_CACHE case, save copies of data returned from
the database library in a static buffer, just in case we decide to use
it after the database has been closed. Technically, the memory that the
data pointers refer to belongs to the DB package and we can't count on
it being there after the database has been closed -- the DB package
frees its buffers. (With DB_CACHE #defined the databases are held
open so the buffers remain valid.) I don't think any of the utilities
that use the dblookup module have had any problems with this yet, but
there's no sense in taking any chances.
1996-07-07 23:02:41 +00:00
Jordan K. Hubbard 2dc1c61598 Support compressed doc files again.
Add a few strategic screen clears.
Do a lot less wasted screen I/O in restoring screen contents that don't need
restoring.
Use tar instead of cp to back up /etc in installUpdate.
Don't panic when upgrade shell exits.
1996-07-05 08:36:02 +00:00
Jordan K. Hubbard bd8a3bdca2 Update docs (more specifically to -current). 1996-07-05 01:24:41 +00:00
Jordan K. Hubbard b95fc60906 Fix some minor reported bogons from the BETA 1996-07-04 23:12:05 +00:00
Bill Paul 93b1ab3da1 Add checks for byte order and DB type mismatches. We ignore the
filename argument for now: it's really only useful for .dir/.pag-style
ndbm databases, which we don't support anyway.
1996-07-04 02:29:54 +00:00
Mike Pritchard 8a4f648f82 Update the pppd(8) man page to exmplain the CHAP acronym
to the same way that the RFC does.

Obtained from: NetBSD-bugs mailing list
1996-07-03 23:23:03 +00:00
Gary Palmer 21496d485b Fix typo.
Submitted by:	Philippe Charnier <charnier@xp11.frmug.org>
1996-07-03 22:06:12 +00:00
Martin Renters ca7c8034d2 Check if username is a NULL pointer before dereferencing it. 1996-07-03 21:43:48 +00:00
Mike Pritchard d19eed81d4 Document the -i backward compatibility option (same as -v).
Submitted by:	Faried Nawaz
1996-07-03 02:11:39 +00:00
Jordan K. Hubbard d009678316 Only print the selected timezone in verification rather than the bogus time. 1996-07-03 01:17:34 +00:00
Wolfram Schneider a7258e9fe6 Print a warning before starting dialog(1) if the user
has no write access to /dev/speaker or the speaker device is not
enabled in kernel.

Code cleanup.
1996-07-02 23:35:21 +00:00
Jordan K. Hubbard dd74699f76 Untabify. 1996-07-02 10:59:26 +00:00
Jordan K. Hubbard fdc0e7826c Document shortcuts.
Fix a bug which prevented variables from working properly
1996-07-02 10:57:58 +00:00
Jordan K. Hubbard 9accf5ed92 Add an extra /etc/hosts entry per advice of Joerg. 1996-07-02 09:12:34 +00:00
Jordan K. Hubbard 3b307053cb Make it plainer how to exit. 1996-07-02 01:03:55 +00:00
Gary Palmer 1e3ae6e45f Add ctm_dequeue to the SUBDIR list now that I've checked that it
compiles cleanly on 2.2
1996-07-01 21:59:22 +00:00
Gary Palmer a58791467b Add a facility for a ``slow'' CTM delta queue, allowing `x' number
of delta's to be mailed out every hour (or however often you schedule
the cron job).

ctm_dequeue is the cron job which takes the stuff from the
queue directory and punts it into sendmail. The chunks of
the deltas (and the complete deltas if they are that small)
are sorted into order before being dispatched, so the people
subscribing should still get the bits in the right order.

The changes to ctm_smail should be fairly safe as they won't be
activated unless you go for the new queue directory option.
1996-07-01 20:54:11 +00:00
Guido van Rooij 79a1b8d9e2 Implement incremental passwd database updates. This is done by ading a '-u'
option to pwd_mkdb and adding this option to utilities invoking it.
Further, the filling of both the secure and insecure databases has been
merged into one loop giving also a performance improvemnet.
Note that I did *not* change the adduser command. I don't read perl
(it is a write only language anyway).
The change will drastically improve performance for passwd and
friends with large passwd files. Vipw's performance won't change.
In order to do that some kind of diff should be made between the
old and new master.passwd and depending the amount of changes, an
incremental or complete update of the databases should be agreed
upon.
1996-07-01 19:38:50 +00:00
Wolfram Schneider 3eacc3d7fd fix: debug flag 'test' cause endless loop
document debug flags

close PR bin/683
1996-06-30 22:11:51 +00:00
Jordan K. Hubbard 66e36f2fac Update the Lynx version number. 1996-06-29 03:49:39 +00:00
Jordan K. Hubbard 210b37a437 Put my changes back - Thanks, Peter! Boy, an errant Tag sure can mess
you up! :-)
1996-06-29 03:43:25 +00:00
Jordan K. Hubbard d08b90a2c6 Sync with 2.1-stable (I commited my changes there first by mistake due to
an errant CVS tag file).
1996-06-29 02:53:09 +00:00
Jordan K. Hubbard 16805608c8 Copy the documentation files up into the release area - I've been doing
this by hand all along.  Silly.
1996-06-29 02:22:48 +00:00
Jordan K. Hubbard 446321c613 Add 3rd South Africa mirror. 1996-06-27 07:03:44 +00:00
Mark Murray 4e7a503f37 This first appeared in 2.1.5. Correct comment. 1996-06-26 17:11:04 +00:00
Jordan K. Hubbard 0006fae5d6 Allow argv[0] to be a command also. 1996-06-26 09:09:30 +00:00
Andrey A. Chernov 72cf78e0b8 Don't print number (garbadge) if media catalog is inactive 1996-06-25 21:01:27 +00:00
Bill Paul 1fe3e67a3f Toss old mknetid script into the attic.
Adjust things slightly to support the new mknetid program.
1996-06-25 20:28:07 +00:00
Mark Murray c1bbe4eead Add sys/ioctl.h to includes. Shut up a warning. 1996-06-25 18:56:19 +00:00
Jordan K. Hubbard 48800325a6 Make "Fake" turn off more potentially system-nuking options. 1996-06-25 18:41:10 +00:00
Søren Schmidt ad0c0c784f Change the way moused talk to syscons, now its only delivering mouseevents
via an ioctl (MOUSE_ACTION).
Fixed a couple of bugs (destructive cursor, uncut, jitter).
Now applications can use the mouse via the MOUSE_MODE ioctl, its
possible to have a signal sent on mouseevents, makeing an event loop
in the application take over mouseevents.
1996-06-25 08:54:57 +00:00
Jordan K. Hubbard d3688aae1c Handle tabs in INDEX files.
Display full, un-truncated version of description in status line.
1996-06-25 04:28:23 +00:00
Jordan K. Hubbard cd9a2f5c28 Bring in my changes for removing the pestilent obj links (unless you
really want them) from /usr/src.  This is the final version of the
patches, incorporating the feedback I've received from -current.
1996-06-24 04:26:21 +00:00
Bill Paul ba21c862b1 Whoops: had a couple of hardcoded instances of '/var/yp/' that shouldn't
have been there. Fixed to use yp_dir, which can be set on the command line.
1996-06-23 22:44:06 +00:00
Bruce Evans 078a9c9415 Removed -g from CFLAGS. 1996-06-23 13:11:59 +00:00
Søren Schmidt 5967c90ee7 Add moused to targets. 1996-06-23 12:13:02 +00:00
Søren Schmidt ad771aa134 Moused is the daemon that provides the connection between the cut&paste
functionality in syscons and the real mouse hardware. If moused is
run one can switch on/off the mousepointer with vidcontrol -m on/off.
There is no manpage yet, but a fairly descriptive usage message....

Reviewed by:sos
Submitted by:	Michael Smith
Obtained from:Some of the mouselogic comes from XFree86
1996-06-21 09:24:09 +00:00
Søren Schmidt bfa09c9c30 Added new -m option, that enable / disables the mousepointer on
a textmode screen.
1996-06-21 07:20:13 +00:00
Nate Williams a866b5490e Don't un-necessarily include varargs.h. 1996-06-20 21:06:53 +00:00
Julian Elischer 6ede0fb59d Submitted by: archie@whistle.com
This program should COMPLAIN about uids > 65K but not abort.. they are after
all legal, and some of us NEED them!
1996-06-20 19:19:29 +00:00
Jordan K. Hubbard a9ef0b2904 Make pkg_install understand and use libftpio instead of its own
copies of the ftp support routines.  Also some cosmetic and minor
bug fixes I've been meaning to incorporate for awhile.
1996-06-20 18:33:55 +00:00
Nate Williams f9651e7e52 Print out the IRQ rather than the IRQ mask when printing out the
resources allocated to the driver when DEBUG is defined.
1996-06-19 17:27:55 +00:00
Nate Williams f7ea09fc34 Enable code that allows the daemon to select a free IRQ from the list if
none is selected.  The code was already there but needed to be updated
to use the correct structure element.
1996-06-19 01:25:37 +00:00
Nate Williams 29f0bf5478 Use irq_tok() instead of num_tok() for IRQ's. This will allow us to use
the '?' (undefined) token for stating IRQ's in the driver config line.

This will allow the card to automatically select and unused IRQ when
that code is enabled.
1996-06-19 01:08:58 +00:00
Nate Williams c716d4f3d6 Staticize and removed unused code. 1996-06-18 23:50:51 +00:00
Nate Williams fd6c426657 Use CFLAGS += instead of setting it directly. 1996-06-18 22:54:25 +00:00
Nate Williams 18f527dc18 Staticize and remove unused function.
Inspired by:	The Nomad code
1996-06-18 21:58:55 +00:00
Jordan K. Hubbard a755641b9a Shut up a message which now appears to be a natural consequence of RIP2 and
RIP1 routeds on the same subnet and I *don't* want filling up my syslog.
1996-06-18 19:59:35 +00:00
Nate Williams c65d32c20e - Removed dead code (if you need it you can get it out of the
Repository).
- Added some comments, and moved some code around to make flow more
  obvious.

No functional changes.
1996-06-18 19:52:30 +00:00
Garrett Wollman 5e7c267709 Add a public domain notice to these files.
Requested by: jkh, 03 Sep 1995
1996-06-18 15:35:06 +00:00
Jordan K. Hubbard 79bde569ad ack - left in a typo. Time for bed! 1996-06-17 23:04:24 +00:00
Nate Williams c40d042f0f Prepend the CIS string length define with CIS_ per the rest of the
constants.

Obtained from:	Nomad code
1996-06-17 22:30:30 +00:00
Nate Williams c1f5e49952 Use the defined path to the card devices instead of hard-coding it's
value in every file.

No functional changes.
1996-06-17 22:14:19 +00:00
Jordan K. Hubbard ce4e6b1773 Init network at proper time. 1996-06-17 21:48:33 +00:00
Garrett Wollman 3c32b88fbf Add keyadmin directory. 1996-06-17 19:49:17 +00:00
Garrett Wollman 1cd1e41621 This is the `key' program from NRL's IPv6 distribution, heavily
hacked up by me to remove the IPv6 stuff (fow now).  I renamed
it `keyadmin' since `key' was already taken by the S/Key calculator.
Its purpose is to act as a command-driven interface to the `PF_KEY'
socket domain, analogously to thefunction of route(8) in the
`PF_ROUTE' domain.  This program is believed to be exportable, since
it does no actual cryptography itself.
1996-06-17 19:47:57 +00:00
Jordan K. Hubbard 6da0e3ac2e Whups! Slight adjustment. 1996-06-17 19:33:27 +00:00
Jordan K. Hubbard 271d660404 Add more items to the glossary menu and reformat it slightly. 1996-06-17 19:31:34 +00:00
Jordan K. Hubbard e5ce154ce5 Add a top level function index. 1996-06-16 23:17:35 +00:00
Jordan K. Hubbard 62a613ae43 Check network status earlier in FTP/NFS installs in order to reduce
user frustration.
1996-06-16 21:57:35 +00:00
Jordan K. Hubbard a6fad3a0ae Make a small optimization which shaves about a second off the time
it takes to build the `All' menu in configPackages.
1996-06-16 16:33:34 +00:00
Jordan K. Hubbard 5dd5cdca60 Change default user/group to ones that actually exist in default passwd
file.
1996-06-15 17:58:51 +00:00
Garrett Wollman 58032a7209 Fix multicast address for sending router discovery packets.
Submitted by:	Kensaku Masuda <greg@greg.rim.or.jp>
1996-06-15 17:10:27 +00:00
Jordan K. Hubbard 59fed81d91 Make the CDROM auto-detection code a little more flexible about accepting
old CDs.
1996-06-14 18:23:26 +00:00
Jordan K. Hubbard bd71bd2513 Don't use some of the low-contrast text attributes I was using before - they
apparently look bad on some LCD screens.  While I'm in there, tweak and adjust
a number of other minor interface details which have been bothering me for
awhile.
1996-06-14 14:34:03 +00:00
Jordan K. Hubbard 16bf435eeb Make the editor work again and we're done. 1996-06-13 17:36:28 +00:00
Jordan K. Hubbard 0447d04bb0 Uh, this is what I was really thinking when I made the device registration
changes - honest! :-)
1996-06-13 17:07:41 +00:00
Jordan K. Hubbard 6104d72491 Correct some embarassing 3am english. 1996-06-13 13:45:16 +00:00
Jordan K. Hubbard 78dc4171c3 Dispense with the special case handling of cuaa* devices by synthesizing
separate entries for sl0 and ppp0 on each device.
1996-06-12 17:09:34 +00:00
Jordan K. Hubbard 56a94b026b Some stuff I left out of the last commit - make toggle options toggle
again instead of simply letting you set them and staying that way forever.
1996-06-12 14:20:20 +00:00
Jordan K. Hubbard 061e2fb9a6 Fix a truly stupid bug which broke the package installation menu
for everything _but_ the multi-user case now (it was the opposite before :-).
That means adding packages with the 2.2-960511-SNAP boot floppy is busted. Feh.
1996-06-12 14:02:13 +00:00
Jordan K. Hubbard 7c8d89b09b handle a message box which can potentially go past 80 cols. 1996-06-12 07:03:44 +00:00
Jordan K. Hubbard 94591e176e Cosmetic fixes for drive names which are 4 chars long.
Submitted-By: Joe Greco <jgreco@ns.sol.net>
1996-06-11 16:18:58 +00:00
Jordan K. Hubbard 5d9009a72c Put in a strategic dialog_clear() to prevent screen corruption reported
by Joerg.
1996-06-11 13:07:57 +00:00
Jordan K. Hubbard 62c09b388a Change some verbiage slightly. 1996-06-11 10:16:53 +00:00
Jordan K. Hubbard 824934f901 A slight error in my logic had me using color text attributes on Hercules
monochrome displays.  Whoops!  Fix.
1996-06-11 09:47:30 +00:00
Jordan K. Hubbard bcb0ff9887 Misc doc cleanup. 1996-06-11 08:02:09 +00:00
Jordan K. Hubbard 3ee8cec854 Come up with a scheme for stamping the FreeBSD version number on CDs,
allowing sysinstall to automagically detect, mount and select an
appropriate FreeBSD CDROM as the installation media.  Defining "appropriate"
also requires that you check the version numbers since an older FreeBSD
CD could be in the drive, which is the purpose of this patch.
1996-06-11 05:06:32 +00:00
Wolfram Schneider b86759fd0f documented login name limit
Obtained from: mailing list
1996-06-09 20:45:35 +00:00
Andrey A. Chernov 113dea9127 Prepare for exec properly and check return values
Submitted by: Arjan de Vet <devet@IAEhv.nl>
1996-06-09 20:40:58 +00:00
Peter Wemm db0b35d139 Ack! You can't strdup() a DB datum that is not null terminated, or you
get seemingly random SEGV's...
1996-06-09 07:34:27 +00:00
Alexander Langer c8d7d3dbe3 Added function prototypes and removed in-line prototypes of standard
functions such as malloc and time.
1996-06-08 23:32:10 +00:00
Jordan K. Hubbard 43b74d6191 Bring back the `config file in the kernel' feature from the 1.x days. This
is conditionalized by the INCLUDE_CONFIG_FILE option in your kernel config
file and is not turned on by default.

Submitted-By: Bill Pechter <pechter@shell.monmouth.com>
1996-06-08 23:27:16 +00:00
Jordan K. Hubbard dabbacad12 Implement selective text attributes for the syscons vty / vt100 emulator
selection since an attribute which looks good on a color console doesn't
necessarily look good in an xterm.
1996-06-08 09:08:51 +00:00
Jordan K. Hubbard bb707f6d7e Put back some changes I inadvertantly spammed with a cvs update. 1996-06-08 08:01:52 +00:00
Jordan K. Hubbard 58fa43d11f Merge changes from HEAD. 1996-06-08 07:15:55 +00:00
Jordan K. Hubbard 7b0a4c23a4 Make CDROMs automagically select as the default media type.
If you're running multi-user, check off items in the packages menu
based on whether or not they're actually installed.
1996-06-08 07:02:21 +00:00
Alexander Langer 3f8b85263c Change min_free to return free space as an off_t instead of a size_t. 1996-06-08 00:46:33 +00:00
Alexander Langer d442994ef5 Fix uninitialized variable that caused a core dump if /etc/newsyslog.conf
was empty.  Closes PR bin/1300.

Found by: Brian Tao <taob@io.org>
1996-06-07 16:27:28 +00:00
Bill Paul 4eaf2ef2cd Somehow, I truncated yp_dbwrite.c in the SRCS line to yp_dbwrite. Curiously,
this did not stop 'make' from working, but it did break 'make depend.'
1996-06-06 20:47:53 +00:00
Bill Paul 1ccb141f89 Add -I${.CURDIR}/../../libexec/ypxfr to CFLAGS so we can see ypxfr_extern.h. 1996-06-06 17:01:53 +00:00
Bill Paul 8959dd9fd9 Take ypxfrd_xdr.c out of SRCS line here too. This program is also
linked with librpcsvc.
1996-06-06 03:59:22 +00:00
Bill Paul 5ecb54ff66 Whoops: dragged along an extra copy of the protocol
definition file by mistake. This isn't needed so long
as the one in include/rpcsvc is installed.
1996-06-05 06:15:07 +00:00
Bill Paul 8b6a78c2ec Added support for in-place updates:
If rpc.yppasswdd is invoked with the -i flag, password changes will
be made to the master.passwd template file and the hash map files
in-place, which means it won't have to run a complete map update.
Instead, it calls /var/yp/Makefile with the 'pushpw' target, which
just pushes the maps to the slaves and runs yp_mkdb -c to tell the
local ypserv to flush its database cache.

The server will check the passwd.byname and passwd.byuid maps to see
if they were built in 'insecure' or 'secure' mode (i.e. with real
encrypted passwords in them or without) and update them accordingly.

This combined with rpc.ypxfrd greatly reduces the amount of time it
takes to complete an NIS password change, especially with very large
passwd databases.
1996-06-05 06:13:09 +00:00
Bill Paul 7de3854770 Update to pass new arguments now expected by the yp_dbwrite routines.
No functional changes.
1996-06-05 05:46:20 +00:00
Bill Paul ddc0f71085 Add rpc.ypxfrd. 1996-06-05 05:23:59 +00:00
Poul-Henning Kamp be09001bc7 Add pccard to makefile system 1996-06-05 04:40:41 +00:00
Poul-Henning Kamp e81ac50d0d Add BINDIR 1996-06-05 04:39:34 +00:00
Bill Paul 16118c2bcb Import rpc.ypxfrd.
This server impliments an RPC-based file transfer protocol that allows
an NIS slave server to copy a raw map database file from an NIS master.

The goal here is to speed up the transfer of very large maps. If you
have, for example, an NIS password database with 30,000 records in it,
it can take around 8 to 10 minutes to regenerate it (four hash databases
are created). As it stands now, ypxfr(8) transfers a map by sucking all
the records from ypserv(8) on the master using yp_all() and writing them
to a new database using the db(3) library. This adds up to another 8 to 10
minutes, per slave. With as the number of slaves increases, this latency
becomes prohibitive.

With rpc.ypxfrd, all the slave has to do is copy the already-built
hash database file from the master and move it into place. Even with a
multi-megabyte file, this reduces the master to slave transfer time
to well under a minute. (This is using TCP.)

Access restrictions are applied using the same mechanism as in ypserv:
you can control access using /var/yp/securenets, and the server will
not transmit the master.passwd.* maps unless the transfer request originates
on a reserved port.

Note: this server is based on my hastily contrived protocol and is _NOT_
compatible with Sun's protocol of the same name. It can't be compatible
for a couple of reasons. For one thing, Sun's protocol has not been published
anywhere that I know of. It is not included in any of the SunRPC source
distributions that I've been able to find. Second, Sun's NIS v2 code
uses old style ndbm maps while FreeBSD uses Berkeley DB. The file formats
are incompatible, so being able to transfer maps between FreeBSD and SunOS
hosts wouldn't do any good anyway. (You could always port the FreeBSD NIS
code to SunOS if you really wanted to do it. :)

(There's also the little fact that SunOS/SPARC is big-endian and FreeBSD/i386
is little-endian. Berkeley DB can handle byte ordering differences; ndbm
probably can't.)
1996-06-05 04:36:55 +00:00
Bill Paul b3e932340d Makefile.yp:
- Add a 'pushpw' target that only yppushes the various passwd maps
  and sends a YPPROC_CLEAR to the local ypserv. This will be used by
  rpc.yppasswdd once I merge in the in-place update changes.

yp_access.c:

- Make the yp_access() function print RPC program and procedure numbers
  that it doesn't know about in literal form. This will allow it to work
  with other prgrams that it doesn't know about, like rpc.ypxfrd I'm going
  to import shortly.

yp_dblookup.c:

- Take out the __inline keywords. They weren't really helping me anyway.

- Somehow I broke yp_next() when DB_CACHE wasn't #defined. Fix it.

- Also fix potential case where yp_next() might loop forever; make sure
  it checks the return values of all the (dbp->seq)()/R_NEXT calls that
  it does as well as comparing keys.
1996-06-05 02:01:31 +00:00
Gary Palmer 4ecb9b64f0 Close a file descriptor leak. Possibly closes PR #1212 1996-06-03 21:35:21 +00:00
Jordan K. Hubbard 916485f4df fix PR#599
Submitted-By: jdp
1996-06-03 04:40:43 +00:00
Poul-Henning Kamp 1d95dc910b Backout yacc changes. 1996-06-02 17:22:01 +00:00
Wolfram Schneider 35da4f43ae People ask in Usenet, how to configure remoteprinting successfully
having a hosts.lpd(5) manpage and some references to it from
within lpd(8) might help here. Close PR docs/1277

Submitted by: andreas@knobel.gun.de (Andreas Klemm)
1996-06-01 23:22:36 +00:00
Jordan K. Hubbard 06ba76bea1 Oh my, looks like I didn't understand .B as well as I thought I did! :-) 1996-06-01 20:51:47 +00:00
Bill Paul 1fbdac93d9 Small touch-ups -- no functional changes.
Fix some comments to reflect reality (in some cases I made changes
to code but not to the comments).

Change some instances of 'inline' to '__inline' to pacify
gcc -ansi -pedantic.

Use rcsid strings more consistently.

Make 'oldaddr' static in yp_access().

Use strcpy()/strcat() in yp_open_db_cache() instead of snprintf().
(Seems to be a little faster this way.)
1996-05-31 16:01:51 +00:00
Poul-Henning Kamp 829bde8e5b yacc rule changes. 1996-05-30 23:16:31 +00:00
Garrett Wollman 892201b43f Copy SGI routed onto head. 1996-05-30 16:31:46 +00:00
Garrett Wollman 8a21e8f003 Superseded by rttrace and rtquery 1996-05-30 16:21:40 +00:00
Garrett Wollman 69ed497b2c Initial revision 1996-05-30 16:19:14 +00:00
Paul Traina 66e5b18f29 Drop privileges if not using standard namelist or kernel file.
Submitted by:	smpatel (Sujal Patel)
1996-05-30 02:20:10 +00:00
Paul Traina 5110a08c3c Drop privileges if not using standard namelist or file.
Submitted by:	smpatel (Sujal Patel)
1996-05-30 02:19:43 +00:00
Sujal Patel 2d8e94a4a4 Enable the -M and -N options of swapinfo, as advertised in the usage line. 1996-05-29 19:57:25 +00:00
Jordan K. Hubbard 8e2068180c Fix some minor formatting dreck. 1996-05-29 03:27:31 +00:00
Jordan K. Hubbard b53e8a34e6 Sha-ZAM!
The root floppy is now gone.  I shall not mourn its passing.
Everything we need is on boot.flp or the bindist.
1996-05-29 01:35:33 +00:00
Jordan K. Hubbard e738132001 Very small semantic change. 1996-05-28 23:31:20 +00:00
Jordan K. Hubbard 8a4078c35e Only look at command-line args if we're not running as init - duh!
Thanks, David.
1996-05-28 18:30:30 +00:00
Wolfram Schneider 6411a71cca document values for option -r 1996-05-28 00:14:20 +00:00
Wolfram Schneider ca6513c085 update SEE ALSO section 1996-05-27 22:46:44 +00:00
Jordan K. Hubbard 02ba3f92c8 Catch and DTRT with SIGPIPE 1996-05-27 22:12:05 +00:00
Bruce Evans cee931a411 Fixed oops in previous change. 1996-05-24 15:35:36 +00:00
Bruce Evans f1f9c55bae Fixed SRCS so that `make depend' works. 1996-05-24 15:33:25 +00:00
Jordan K. Hubbard 2f833c17e4 Have both distribution and package extraction screens display the
transfer speed in KB/sec while fetching stuff; this gives you a better
idea if your link has crashed or is behaving oddly.
1996-05-23 16:34:30 +00:00
Wolfram Schneider 18e75007df delete MANDIR=/usr/share/man/man,
it breaks `env MANDIR=<dir> make maninstall'
1996-05-21 18:09:11 +00:00
Jordan K. Hubbard ce595c03fb Remove a particularly annoying confirmation dialog. 1996-05-21 15:57:21 +00:00
Garrett Wollman 8893f6f940 Correct synopsis (-d, -I options were missing because -mdoc mistook
the dI in `.Op Fl dI' for the name of an internal mdoc command).
1996-05-20 17:10:03 +00:00
Paul Traina 02415dc2f9 Change install permissions to 4555 from 4755 1996-05-20 16:42:32 +00:00
Jordan K. Hubbard b92bf7517c freefall's new sendmail.cf file.
Submitted by:	gpalmer
1996-05-17 07:47:34 +00:00
Jordan K. Hubbard e160c5f148 Rethink the previous X distribution change. Including COMPAT_21 is just
bogus, and I think I'll simply see that the X distribtion is rebuilt for
-current before doing another snapshot for it. :-)
1996-05-16 13:39:08 +00:00
Jordan K. Hubbard cdb7618ef9 Get X user and X developer distributions checked correctly again in menus.
Oh yeah, last commit also fixed (I hope) the /etc/sysinstall not being
written on Custom installation problem.
1996-05-16 13:30:24 +00:00
Jordan K. Hubbard 16185b823a Fix some long-standing malloc bugs in the package handling code (freeing garbage
in one place, leaking memory in another).

Add a facility to invoke subsystems directly by naming them on
sysinstall's command-line when running post-install.  A replacement
for pkg_manage might, for example, be `/stand/sysinstall configPackages'

Fix bogon where upgrade shell was entered with tty modes spammed.

Fix bug with release name checking in ftp_strat.  Turned a bunch of
bogus exit()s into proper calls to systemShutdown().
1996-05-16 11:47:46 +00:00
Poul-Henning Kamp 1bccdd4ade Commit the right version of mkCTM, <:-)
Noticed by:	"Philippe Charnier" <charnier@lirmm.fr>
1996-05-14 07:25:59 +00:00
Garrett Wollman 5e074e31a2 Get rid of the last vestiges of the old MOUNT_* constants in the
mount_* programs.  While we're at it, collapse the four now-identical
mount programs for devfs, fdesc, kernfs, and procfs into links to
a new mount_std(8) which can mount any really generic filesystem
such as these when called with the appropriate argv[0].

Also, convert the mount programs to use sysexits.h.
1996-05-13 17:43:19 +00:00
Poul-Henning Kamp 61f20a4c29 PR: bin/1194: PPP server port not initialized
Latest round of changes omitted initialization of tunnel device
unit variable.

Submitted by:	John Capo <jc@irbs.com>
1996-05-13 07:20:11 +00:00
Poul-Henning Kamp 9c749ffb8b Here is a diff of /usr/src/usr.sbin/ppp against current. The diffs
add some logging functionality which I find very useful.
'set debug link' will record just link up/down and address assignments.
'set debug connect' will record the entire chat dialog
'set debug carrier' will record just chat lines including 'CARRIER'
(so that I can be sure I'm getting a 28.8 line).

There was a global change required to permit LogPrintf to take a bit
mask instead of a bit position value (to permit logging some events
on either of two flags, so that no change in 'set debug lcp' would
result from the code supporting 'link'.  Thus the diffs are rather
long for such a small change.  The man page is also touched.

Oh, and there was a slight syntax problem in route.c

Reviewed by:	phk
Submitted by:	Tony Kimball <alk@Think.COM>
1996-05-11 20:48:42 +00:00
Joerg Wunsch afc417e07b Convert the option parser to use getopt(3). This makes it more
orthogonal with the rest of the system (you can now use either -PPS or
-P PS), and makes the parser more intelligible.  The only drawback is
that the old semantics for the -i flag in case a non-numeric argument
is following are no longer fully supported (only if -i is the very
last arg at all), since getopt(3) doesn't support the discticnction
between numeric and non-numeric arguments.

Make lpr also understand dashes as input pseudo filenames.  This
finally makes lp(1) fully comply with Posix.2.
1996-05-11 19:00:55 +00:00
Joerg Wunsch 7e703be7cd Clean out the BUGS section/comments now that our lpr has a better
option parsing.
1996-05-11 18:56:11 +00:00
Joerg Wunsch 7f72cbbae9 Cleanup.
The removed files are no longer needed, they are actually labelled as
``Use only if you are not 4.4BSD''.  (Yeah, the ol' crufty printcap.c
is really gone!)

Properly declare all external objects in files ending in .h, as
opposed to embed them into files ending in .c.
1996-05-09 22:44:28 +00:00
Poul-Henning Kamp 15bc0feba3 Update to current reality.
mkctm.c can replace the guts of mkCTM if anybody feels like it...
1996-05-09 20:54:06 +00:00
Jordan K. Hubbard 0502c52ac9 Some cosmetic changes:
Make "selection bar" inverse video white-on-blue on color screens to avoid
it getting muddled up with popup dialogs.

Do disk selection in a more friendly fashion (for one thing, allow a
drive to be de-selected again if you change your mind).

Add a few strategic screen-saves to prevent corruption of screen contents
(thanks, Michael Elbel!).
1996-05-09 09:42:17 +00:00
Jordan K. Hubbard fb59e630f6 Properly free up resources allocated in swapmode(). This is not quite
the patch submitted by Philippe Charnier since he wasn't actually freeing
the resources early enough (an earlier return could be invoked, leaving
the resources still allocated), but he definitely pointed it out.  Merci,
Philippe!
Suggested-By: Philippe Charnier <charnier@lirmm.fr>
1996-05-09 07:13:16 +00:00
Bill Paul 0c06051e16 Fix 'multidomain' code. It returns a pointer to memory that it doesn't
really own (and which can end up being mangled later). The manifestation
of this bug is that the first attempt by a user to change their NIS password
succeeds, but all subsequent attempts fail. rpc.yppasswdd also logs
a message about not being able to find a file called
'/var/yp/<some garbage string>/master.passwd.' (Note that for some
bizarre reason, this doesn't happen with the malloc() from FreeBSD 2.1.0.
I suppose this means we can chalk up another victory for phkmalloc. :)

This bug only occurs if you use the -m flag with rpc.yppasswdd.

Fix this by copying the domain name to a static buffer and returning
a pointer to that instead.

Reported by: Jian-Da Li (jdli@csie.nctu.edu.tw)
1996-05-08 15:57:11 +00:00
Jordan K. Hubbard dbf0824129 ppoll -> yppoll. This Makefile should work better now. :-) 1996-05-08 12:28:23 +00:00
Wolfram Schneider 9fb933075e ``mv'' -> ``mv -f''
``rm'' -> ``rm -f''
so mv/rm may not ask for confirmation if you are not root
1996-05-07 23:19:49 +00:00
Bill Paul acec6438af Dohw! Turn on yp_mkdb in the Makefile. 1996-05-07 16:17:45 +00:00
Gary Palmer ac52e6af45 Add $Id$ 1996-05-07 03:16:43 +00:00
Gary Clark II b8ff21bda2 We DON'T ship bash by default, why is it the default shell?
We also don't ship tcsh or ksh by default.
Correct these two things to make sh the default and increase csh and sh
to be higher priority.
1996-05-06 06:15:19 +00:00
Joerg Wunsch 5458e2f421 Pull a bunch of fixes from the 4.4BSD-Lite2 branch. It's really
surprising how many trivial errors there have been... :-)

Some more cleanup is needed, but i'd like to separate the Lite2 changes
from other work, that's why this goes into a different commit.

People with serial printers should see whether i have broken the stty-
style printcap options (i hope not).

Inspired by: Sergey Shkonda <serg@bcs1.bcs.zaporizhzhe.ua>
1996-05-05 22:40:51 +00:00
Jordan K. Hubbard 7458568265 Bring in some changes to make the FTP installation warn you if it can't
find the requested release on a given site.
1996-05-05 21:54:23 +00:00
Joerg Wunsch 4ebd2ee491 Fix my botched 4.4Lite2 import, and revert these files to their HEAD
versions.
1996-05-05 19:28:34 +00:00
Joerg Wunsch f519e3067e This commit was generated by cvs2svn to compensate for changes in r15637,
which included commits to RCS files with non-trunk default branches.
1996-05-05 14:04:33 +00:00
Joerg Wunsch 0b561052df Vendor-branch import of the 4.4BSD-Lite2 code for lpr. There are
several bugfixes in it that are worth considering.

Don't be alarmed about the import conflicts...

Obtained from: 4.4BSD-Lite2
1996-05-05 14:04:33 +00:00
Peter Wemm 257d5892a3 rm the files first before uudecoding, because the modes in the begin
line doesnt permit writes by the owner.. (oops!)
1996-05-05 07:40:46 +00:00
Peter Wemm d36a01efe4 Oops, add stallion utils to i386 part of Makefile 1996-05-05 07:36:18 +00:00
Peter Wemm 4e2cf54fdb Minimal adjustments to get the Stallion utilities to build and install
in a FreeBSD style source tree.
1996-05-04 08:02:31 +00:00
Peter Wemm e07e2de9b7 This commit was generated by cvs2svn to compensate for changes in r15606,
which included commits to RCS files with non-trunk default branches.
1996-05-04 07:22:23 +00:00
Peter Wemm 369dee27a3 Import the user-mode parts of the v0.0.5alpha Stallion driver.
Submitted by: Greg Ungerer (gerg@stallion.oz.au)

(Note, patches to compile/install to follow)
1996-05-04 07:22:23 +00:00
Mike Pritchard 897743c7c7 Xref chat(8) and ppp(8).
Pointed-out-by: Someone in the mailing lists
1996-05-02 19:21:40 +00:00
Mike Pritchard 9cdda9ab23 Xref chat(8) and pppd(8). Also change .It references to .Pa for file
name references in the file section.
1996-05-02 19:18:47 +00:00
Jordan K. Hubbard 6ff0b3b86b Clear the TCP/IP device configuration screen away after we invoke it. 1996-05-02 10:09:45 +00:00
Poul-Henning Kamp a8b878b7d1 NBPG -> getpagesize() 1996-05-02 09:09:04 +00:00
Jordan K. Hubbard 4d1ff43651 Fix the last known bogon with the packages menu. It's SNAP time! 1996-05-01 09:31:50 +00:00
Jordan K. Hubbard e4465ce377 If we've selected X, select the compat21 distribution as well. 1996-05-01 08:50:00 +00:00
Jordan K. Hubbard 56359f702d Add the compat21 dist. 1996-05-01 08:42:40 +00:00
Jordan K. Hubbard 7653020ceb Micro tweak for getting the Holographic shell message to stay on the
screen longer.
1996-05-01 03:31:08 +00:00
Bruce Evans 52efa6c17d Default to udp if neither udp nor tcp is specified. The previous revision
was broken.  It forced udp in all cases except the extremely unusual case
argc == 0.
1996-05-01 03:13:45 +00:00
Jordan K. Hubbard 1fadece3ee Fix another couple of bogons with the package menu. 1996-04-30 21:22:29 +00:00
Jordan K. Hubbard f848fa52b6 Add a missing close that left ftpd's scattered around on pkg_installs 1996-04-30 06:13:50 +00:00
Jordan K. Hubbard 351ad0d904 properly reset SYSTEM_STATE after installCommit runs. 1996-04-30 06:02:51 +00:00
Jordan K. Hubbard 7126da56c6 Fix some bogons in the package installer menu and search function. 1996-04-30 06:00:06 +00:00
Jordan K. Hubbard 478d4fc5da Make sure package-installers refresh the screen properly. 1996-04-30 05:40:15 +00:00
Jordan K. Hubbard b8258c10b9 Clear the screen before putting up tcpip dialog. 1996-04-30 05:25:15 +00:00
Jordan K. Hubbard 378a8550b9 More cosmetic changes before tomorrow's snapshot. 1996-04-30 05:23:49 +00:00
Jordan K. Hubbard ca49c63b8b Fix more display weirdnesses that only show up during a real installation. 1996-04-29 21:15:44 +00:00
Jordan K. Hubbard 872159b7ba Remove a bogus dialog_clear(); 1996-04-29 21:07:44 +00:00
Poul-Henning Kamp c936f2cb5a Support for "-u" which sets the timestamp from the delta on the file.
Intended for sup mirrors etc.  Not well tested yet.

Reviewed by:	phk
Submitted by:	Giles Lean <giles@nemeton.com.au>
Submitted by:	John Hay <jhay@mikom.csir.co.za>
1996-04-29 21:02:42 +00:00
Jordan K. Hubbard a9fa9c274b Reshuffle the installation routines a little for greater clarify. 1996-04-29 19:34:25 +00:00
Jordan K. Hubbard 07c77d857a Yikes - bogon crept into the NFS setup menu. 1996-04-29 18:06:08 +00:00
Jordan K. Hubbard 2908ba6ad7 Fix a small display bogon with the progress indicators. 1996-04-29 17:59:07 +00:00
Jordan K. Hubbard 1966645d08 Add some more debugging statements. 1996-04-29 06:47:10 +00:00
Bill Paul 1eb476ce90 Fix embarassing mind-o: transient RPC program numbers run from
0x40000000 to 0x5FFFFFFF, not 0x4000000 to 0x5FFFFFF. *sigh*
1996-04-29 05:24:26 +00:00
Jordan K. Hubbard 1bfda8cb03 Fix some display bogons in the label editor. 1996-04-29 05:09:23 +00:00
Jordan K. Hubbard ba034263ba Don't stop /etc/sysconfig if we're `faking'.
More asthetic adjustments to menus.
Improve both the display efficiency and usability of the label
screen - it's now possible to label quite a few disks in the label editor.
1996-04-28 22:54:21 +00:00
Jordan K. Hubbard c97113d14f Add a new -fake argument to make sysinstall not actually change things while
I'm testing it.
1996-04-28 20:54:11 +00:00
Bill Paul b2264be812 Performance enhancements (I hope) and new stuff:
yp_dblookup.c:

- Implement database handle caching. What this means is that instead
  of opening and closing map databases for each request, we open a
  database and save the handle (and, if requested, the key index)
  in an array. This saves a bit of overhead on things like repeated
  YPPROC_NEXT calls, such as you'd get from getpwent(). Normally,
  each YPPROC_NEXT would require open()ing the database, seeking
  to the location supplied by the caller (which is time consuming with
  hash databases as the R_CURSOR flag doesn't work), reading the
  data, close()ing the database and then shipping the data off to
  the caller. The system call overhead is prohibitive, especially
  with very large maps. By caching the handle to an open database,
  we elimitate at least the open()/close() system calls, as well
  as the associated DB setup and tear-down operations, for a large
  percentage of the time. This improves performance substantially at
  the cost of consuming a little more memory than before.

  Note that all the caching support is surrounded by #ifdef DB_CACHE
  so that this same source module can still be used by other programs
  that don't need it.

- Make yp_open_db() call yp_validdomain(). Doing it here saves cycles
  when caching is enabled since a hit on the map cache list by
  definition means that the domain being referenced is valid.

- Also make yp_open_db() check for exhaustion of file descriptors,
  just in case.

yp_server.c:

- Reorganize things a little to take advantage of the database
  handle caching. Add a call to yp_flush_all() in ypproc_clear_2_svc().

- Remove calls to yp_validdomain() from some of the service procedures.
  yp_validdomain() is called inside yp_open_db() now, so procedures that
  call into the database package don't need to use yp_validdomain()
  themselves.

- Fix a bogosity in ypproc_maplist_2_svc(): don't summarily initiallize
  the result.maps pointer to NULL. This causes yp_maplist_free()
  to fail and leaks memory.

- Make ypproc_master_2_svc() copy the string it gets from the database
  package into a private static buffer before trying to NUL terminate it.
  This is necessary with the DB handle caching: stuffing a NUL into the
  data returned by DB package will goof it up internally.

yp_main.c:

- Stuff for DB handle caching: call yp_init_dbs() to clear the
  handle array and add call to yp_flush_all() to the SIGHUP
  signal handler.

Makefile.yp:

- Reorganize to deal with database caching. yp_mkdb(8) can now be used
  to send a YPPROC_CLEAR signal to ypserv(8). Call it after each map
  is created to refresh ypserv's cache.

- Add support for mail.alias map.
  Contributed by Mike Murphy (mrm@sceard.com).

- Make default location for the netgroups source file be /var/yp/netgroup
  instead of /etc/netgroup.

mkaliases:

- New file: script to generate mail.alias map.
  Contributed by Mike Murphy (mrm@sceard.com).

Makefile:

- Install Makefile.yp as /var/yp/Makefile.dist and link it to
  /var/yp/Makefile only if /var/yp/Makefile doesn't already exist.
  Suggested by Peter Wemm.

- Install new mkaliases script in /usr/libexec along with mknetid.

- Use somewhat saner approach to generating rpcgen-dependent files
  as suggested by Garrett Wollman.
1996-04-28 04:38:52 +00:00
Bill Paul 6290107b02 Import the new yp_mkdb. This one does what the old one does, but is
hopefully less grotty. Differences include:

- An extra flag, -c, for sending a YPPROC_CLEAR to ypserv(8) (which
  will become useful once I merge in the DB handle caching mods I've
  been working on).
- Checks for and signals duplicate keys.
- Handles line continuations.

As of now, there is no more GNU YP code in the tree.
1996-04-28 04:16:06 +00:00
Jordan K. Hubbard 89592e552b Fix an ancient index list bug.
Make FTP re-initializion work.
Fix fix fix.
1996-04-28 03:27:26 +00:00
Jordan K. Hubbard 3174386dd6 Move some of functions around in order to make this stuff easier
to work on.
1996-04-28 01:07:27 +00:00
Jordan K. Hubbard ba67e870cb Bump snapshot release date - looks like I was off by a couple
of days!

More display fixes to sysinstall and assorted tweaking.
1996-04-28 00:37:38 +00:00
Jordan K. Hubbard 40c2e7eb17 Add a missing helpfile for fixit. 1996-04-27 07:18:59 +00:00
Jordan K. Hubbard 4db3e58bb2 More misc menu hackery. 1996-04-27 07:04:12 +00:00
Jordan K. Hubbard c671b664f0 Update more docs to match -current reality. 1996-04-27 01:34:47 +00:00
Jordan K. Hubbard 35ee5f3e57 Fix display refresh bug in displayHelp()
Go back to Normal menus for Media and FTP menus rather than
radio menus - the difference in behavior is confusing and sort
of detracts from the added (small) advantage of seeing what you last
picked.
1996-04-26 18:19:38 +00:00
Jordan K. Hubbard 689aa5ca2b These docs were in fair need of updating. 1996-04-25 18:40:02 +00:00
Jordan K. Hubbard a0b037c2c7 Add a place-holder message for the CDROM fixit feature (which I'm not going
to add in time for the next SNAP).
1996-04-25 18:00:28 +00:00
Jordan K. Hubbard 18b1c03d52 Quite a few changes:
1. Fix the last display bugs (I hope) by use of dialog rebuilds at stategic
   points.
2. Clean up the distributions menus so that everybody (that's reasonable)
   has All and Clear options for setting/clearing things en-masse.
3. Various attempts at display optimization.
4. Change the wording of the `Don't use Write!' dialogs to make them more
   explicitly define when and when not to use the option.
1996-04-25 17:31:27 +00:00
Paul Traina c64765e4cc Close a security hole in sliplogin.
If you use sliplogin as a user shell (in /etc/passwd) upgrade to this version.
Reviewed by:	bde, peter
Submitted by:	AUS CERT
Obtained from:	Linux sliplogin-2.02
1996-04-24 20:18:25 +00:00
Nate Williams 8410acf091 - Make pccardd release it's allocated io space and sets the mem.cardaddr
even if DEBUG is not set.
- #ifdef protect DEBUG printf's

Submitted by:	sos
1996-04-23 16:46:48 +00:00
Jordan K. Hubbard 2113a60c4b Bring this into sync.
I still have a _very very annoying_ display bug which occurs when a menu
item causes a submenu to be displayed - the screen repaints for the original
menu (which is restored upon return from the submenu) are off by about 4
characters.  I've tried restoring the screen, the cursor position, you name
it - same deal.  Grrrr!  This commit is my first step in trying to get someone
else to help me look into this one since I'm just tearing my hair out at this
point!
1996-04-23 01:29:35 +00:00
Paul Traina 4b2e1057cf typo shmrsh -> smrsh 1996-04-22 20:30:09 +00:00
Paul Traina 6ec2301d28 Find official home of smrsh 1996-04-21 19:50:46 +00:00
Paul Traina 0abdd9956c Enable proper installation of sendmail restricted shell smrsh(8).
This program is a wrapper for the prog mailer in sendmail.  It does shell
meta character masking and restricts the list of executables to those found
in /usr/libexec/sm.bin.

The default sendmail.cf file does not use this tool, however you can enable
it by either changing /bin/sh to /usr/libexec/smrsh or adding the line
FEATURE(smrsh) into your sendmail .mc file and rebuilding your .cf file.

For more info, RTFMP.
1996-04-21 19:48:07 +00:00
Nate Williams 39413a2c2a Fix usage: message to print out corrrectly.
Submitted by:	Tatsumi Hosokawa <hosokawa@mt.cs.keio.ac.jp>
1996-04-18 05:23:47 +00:00
Nate Williams 94fe059277 Added RCS Id and BSD-style copyrights to individual files. 1996-04-18 04:25:17 +00:00
Joerg Wunsch 9b25840f5c Mention swapinfo as .Nm, so it will be referenced by mkwhatis. 1996-04-17 20:50:44 +00:00
Paul Traina 67060c5ae7 Fix a few bugs in argument processing.
Submitted by:	Timo Kokkonen <tjko@jyu.fi>
1996-04-17 08:57:50 +00:00
Bill Paul 6ec733f455 NIS cleanups and fixes, the next generation, continued.
pwd_mkdb.c:

- Don't save the PLUSCNT and MINUSCNT tokens: we don't need them anymore.

- Count the + and - entires for NIS together instead of counting + and -
  entries seperately. Index all special NIS entries using new _PW_KEYYPBYNUM
  token.

pwd.h:

- Remove the PLUSBYNUM, MINUSBYNUM, PLUSCNT and MINUSCNT tokens and replace
  then with a single _PW_KEYYPBYNUM token.
1996-04-16 00:23:59 +00:00
Bruce Evans 227941d5de Implemented a new keyword `disable'. This should be useful for controlling
dangerous drivers in GENERIC.

Removed non-comments on #endifs in config.y.

Improved output formatting in mkioconf.c.
1996-04-13 19:57:38 +00:00
Bruce Evans 93d2c1bde1 Fixed a couple of format strings to match the change of pid_t from long
to int32_t.  I only fixed the ones that I noticed the warnings for.
Perhaps most of the format strings are correct now because they were
wrong before.  Except of course if int32_t isn't compatible with `int'.
1996-04-13 15:47:43 +00:00
John Hay c1117f898c Accept and use the content of packets received that is bigger than the
Novell spec, but still only transmit according to the spec.
Add a feature to dump the RIP and SAP tables when a SIGINFO signal is
received.
1996-04-13 15:13:30 +00:00
Jordan K. Hubbard af4cbec4e1 1. Update all the copyrights to delete useless clauses 3 and 4.
2. Change more of the menu code over to new system.
3. Streamline label editor.
1996-04-13 13:32:15 +00:00
Joerg Wunsch 062c4e5ca5 Remove the legacy -d option from the arguments to mail.local in 4.4bsd. 1996-04-13 11:42:46 +00:00
Marc G. Fournier 1e3a3c5e71 default to udp if no flags specified...closes PR#bin/759
- should this be documented in the man page?
1996-04-13 06:08:24 +00:00
Mike Pritchard 879fbaede8 Fix a typo.
Submitted by:	David Leonard <d@scry.dstc.edu.au>
1996-04-13 02:09:03 +00:00
Bill Paul 5fe4681564 Fix for memory leak: specify NULL as openinfo parameter when calling
dbopen() to open an NIS map.

Testing with very large maps (e.g. a sample password database with 31,000+
entries) has shown that ypserv will leak memory (ps shows RSS and VSZ
growing to 4000 pages or more) when performing repeated yp_next()s or
a yp_all(). The problem with yp_all() is not immediately obvious since
the ypproc_all service is handled in a child process which exits once
the transfer is finished, but with repeated yp_next()s (like what you
get when you use getpwent() to scroll through the password database),
the parent ypserv grows to enormous size and never shrinks again.

It seems this is related to the HASHINFO parameters I used in yp_dblookup.c,
which I actually stole from pwd_mkdb. Calling dbopen() with the default
parameters (specifying openinfo as NULL) fixes the problem.

I still need to see how this impacts the other NIS tools. I'm also
considering changing from hash to btree databases: the hash database
method doesn't support R_CURSOR, which means yp_next_record() has to
do a lot of ugly work in order to reach an arbitrary location in the
database.
1996-04-11 20:54:15 +00:00
David Greenman dc7c7b9221 Fix editing mistake in last commit...sorry. 1996-04-11 08:24:04 +00:00
David Greenman a78ca332ec Bugfix based on a kernel fix:
When PPP gets an uncompressed packet, it attempts to save off the TCP/IP
header for use in decompressing subsequant packets. If PPP gets garbage
(such as what happens when there is a port speed mismatch or modem line
noise), it will occasionally mistake the packet as a valid uncompressed
packet. When it tries to save off the header, it doesn't bother to check
for the validity of the header length and will happily clobber not only
the PPP VJC data structure, but parts of other process memory that happens
to follow it...causing, ahem, undesired behavior.
1996-04-11 08:14:44 +00:00
Nate Williams ba4aa9f624 Run indent on all these files to make them more readable. (I also went
through by hand and cleaned up some indent bogons.)
1996-04-10 06:49:32 +00:00
Nate Williams c42a753bc2 Run indent on all these files to make them more readable. (I also went
through by hand and cleaned up some indent bogons.)
1996-04-10 05:45:39 +00:00
Sujal Patel 019d933039 Fix a core dump when the user gives "-w" without an "=" 1996-04-10 00:53:22 +00:00
Nate Williams c78fc4f444 Remove a file no longer valid as the config file moved to /etc/pccard.conf. 1996-04-09 23:33:08 +00:00
Nate Williams d8584d7061 Cleanup useless stuff in Makefile and add a missing NOMAN target. 1996-04-09 23:31:51 +00:00
Nate Williams 17139567a0 Removed original distribution files that are no longer valid. 1996-04-09 23:29:07 +00:00
Marc G. Fournier fd2c4394ca Quick patch to fix a bug where issuing ctl-c while in crontab -e
leaves editor running in background (PR: bin/751)

Submitted by:	 candy@fct.kgc.co.jp (Toshihiro Kanda)
1996-04-09 20:28:16 +00:00
Mike Pritchard edf0e5b3f8 Correct some man page xrefs, and some other minor changes to bring some
man pages up to mdoc guidelines and fix some minor formatting glitches.
Also fixed a number of man pages to not abuse the .Xr macro to
display functions and path names and a lot of other junk.
1996-04-08 04:18:31 +00:00
Mike Pritchard e35defbe2b Change references from rpc.bootparamd to bootparamd. 1996-04-07 23:28:25 +00:00
Mike Pritchard e493905cd2 Some minor cleanup to bring the pccard man pages in line
with mdoc guidelines.
1996-04-07 09:14:46 +00:00
Mike Pritchard 761111c767 Correct the rpc.lockd and rpc.statd man pages to not reference
their path names in the synopsis line (especially since they
referenced the wrong path!).  Corrected some other minor problems
with the rpc.lockd man page.
1996-04-07 08:55:32 +00:00
Jordan K. Hubbard 957bdf511e Major surgery.
1. Use new dialog menu hacks (no strings, just arrays of dialogMenuItem structs)
   so that I can create composite menus with radio/checkbox/... items in them,
   removing some long-standing UI bogons in various menus.  This work isn't
   finished yet, but will be done in two phases.  This is phase one.

2. Remove all the script installation stuff.  I never got time to document it,
   it was arcane and it just complicated much of the code.  There are better
   ways of doing this if I want to do auto-driven installations later.

3. Remove much dead code and otherwise attempt to remove as much historical
   grot as possible so that this code is easier to hack on.  This is also
   a two-stage process, phase one of which is now complete.
1996-04-07 03:52:36 +00:00
Mike Pritchard 906c1e27fc Correct some man page cross references and file location references. 1996-04-07 00:06:21 +00:00
Mike Pritchard e229ffb7e9 Correct some cross references and some path names. 1996-04-06 09:47:30 +00:00
Andrey A. Chernov 81cc95f2a7 Here is a patch for a little bug in the WaitForString routine. The problem
is when the matched string spans the end of the inbuff.  This fix allocates
twice the IBSIZE so that it can keep the last and the current text to search
in the inbuff so that the match won't fail if it gets truncated by the read.

It also warns if the search string is to long and truncates it.

Submitted by: Dough Ambrisco <ambrisco@ambrisco.roble.com>
1996-04-06 02:00:17 +00:00
Peter Wemm 0bb54c2df4 Add rpc.statd and the stub rpc.lockd, as these build and are of some use to
some people.
1996-04-04 03:17:48 +00:00
Sean Eric Fagan e0048e9658 Makefile: Add new modes.c file to list of objects.
printjob.c:  Use termios instead of sgtty structs and ioctls; remove
support for fs/fc/xs/xc capabilities, and replace them with the ms
capability (stty-like words, instead of octal bit patterns).
modes.c:  Modified from stty's file, parses comma-seperated list of
tty modes (e.g., "cs8,-paren,-opost").

Reviewed by:	rgrimes, joerg
1996-04-03 22:49:15 +00:00
Sean Eric Fagan a1e5d6f458 Remove definitions and declarations for FS, FC, XS, XC variables, and
replace them with MS char* variable.

Reviewed by:	rgrimes, joerg
1996-04-03 22:46:59 +00:00
Sean Eric Fagan 21b2a25cfb printcap.5: Remove fs,fc,xs,xc capability, and replace them with the ms
capability

Reviewed by:	rgrimes, joerg
1996-04-03 22:46:17 +00:00
Jordan K. Hubbard b7cda8bf5b Update paths to Taiwan sites. 1996-04-03 06:55:09 +00:00
Bill Paul 92a11b8721 yppush_main.c:
- Remove unused 'pid' member from the jobs structure. (This was left over
  from an earlier incarnation of the program that used multiple processes.)

- Remove #ifdef'ed longjmp() stuff.

- Print warning message if the 'pushing' host is not the master for
  a map being pushed but don't bail out. (While yppush should only
  be used on an NIS master, using it elsewhere is not an unpardonable sin.)

yppush.8:

- Fix a couple of mind-os.

Makefile

- Change format to hopefully ease bootstrapping. (Suggested by wollman.)
  Other Makefiles should follow.
1996-04-03 03:24:03 +00:00
Peter Wemm 49481ba074 Add the '8' flag to the smtp and esmtp mailers. This causes sendmail-8.7.5
to behave like the older sendmails when talking to a peer that does not
have esmtp or does not advertise 8BITMIME.  The old sendmail "just sent it
anyway", while the 8.7.x series mangle any extended character set mail
by conferting it to quoted-printable or base64.  Freefall has been
running this for some time.
1996-04-03 03:06:17 +00:00
Joerg Wunsch c78cc02b89 Copy /etc/localtime, unless it's already a symlink. 1996-04-01 08:17:49 +00:00
Peter Wemm a60dc5e0f9 Some minor tweaks for statd
- use rpcgen to generate unmodified code instead of havinf it in the
  repository
- use "natural" function names to avoid conflicts with prototypes etc.
1996-04-01 05:36:06 +00:00
Peter Wemm ce81d24b05 Tweaks for the stub lockd.
- Use rpcgen to generate the unmodified boilerplate code rather than
  having it in the repository.
- Eliminate the conflicting function names by changing them to their
  "natural" rpcgen generated names
1996-04-01 05:30:04 +00:00
Mike Pritchard d172713dd7 Allow the use of uid ranges when using the "-p" option to allow
easy setup of default quotas for a range of uids.  Usage:

edquota -p protouser startuid-enduid

E.g.
edquota -p mpp 10000-19999

Will duplicate the quota limints for user mpp for uids 10000 - 19999.
The uids in question do not have to currently exist in /etc/passwd.
1996-03-31 20:57:44 +00:00
Joerg Wunsch 2d71a1f121 Another round of fixes:
. Replace my NIH-suffering code to detect the number of lines on
  the terminal by the curses variable LINES.

. Fix the selection code for countries with more than one screenful
  of locations.  The very few people living in America/US/Pacific
  now won't be charged for Indiana any longer... :)

. Removed the gross code that copied over the timezone file to
  /etc/localtime, and create a symlink now instead.
1996-03-31 09:55:02 +00:00
Andrey A. Chernov 7a8ef19ef1 Put signal number into logfile 1996-03-30 18:27:45 +00:00
Jordan K. Hubbard 7188eb8c29 Add the jp.106 Japanese keymap to list of possibilities. I also see
a jp.106x keymap there, but Satoshi hasn't asked for it and I don't know
what it even is, so...
1996-03-30 16:19:40 +00:00
Andrey A. Chernov 043e364b86 Fix UnrawModem:
restore initial (not second level) state
not call it for DEV_SYNC
issue input flush after restoring
1996-03-29 15:24:04 +00:00
Bruce Evans b7a7f2d19d Count PCI irqs in up to 4 ISAish counters named `pci irqnn' instead of
in the clk0 counter.

Reviewed by:	se
1996-03-29 15:04:14 +00:00
Joerg Wunsch 220e7e44c0 Add bootparams.5.
Obtained from: NetBSD
1996-03-28 20:49:31 +00:00
Andrey A. Chernov e3118d3f5b Directly clear parity area because cfmakeraw not do it 1996-03-28 13:38:59 +00:00
Andrey A. Chernov 3f0f267e5d After real problem is found (flush never occurse), re-enable
software flow control, but re-enable it properly,
idea taken from taylor 'cu'
1996-03-27 22:58:21 +00:00
Andrey A. Chernov 71f99a8d0e Fix typing bug cause flushing never occurse:
TIOCFLUSH -> TCIOFLUSH
1996-03-27 22:28:19 +00:00
Andrey A. Chernov b3f735dcfd Use cfmakeraw() instead of all those termios settings 1996-03-27 21:40:55 +00:00
Andrey A. Chernov 8cf220d53b Cleanup both raw & termianl modes termios flags settings 1996-03-27 21:16:32 +00:00