Commit Graph

1565 Commits

Author SHA1 Message Date
jkh
75eff6ce68 Reshuffle the installation routines a little for greater clarify. 1996-04-29 19:34:25 +00:00
jkh
7d018bcad9 Yikes - bogon crept into the NFS setup menu. 1996-04-29 18:06:08 +00:00
jkh
aa459649ab Fix a small display bogon with the progress indicators. 1996-04-29 17:59:07 +00:00
jkh
9884b186fd Add some more debugging statements. 1996-04-29 06:47:10 +00:00
wpaul
ea36500499 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
jkh
c095b66ef2 Fix some display bogons in the label editor. 1996-04-29 05:09:23 +00:00
jkh
653fe18598 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
jkh
e8a6aab937 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
wpaul
b0f13df092 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
wpaul
c0b4738d2e This commit was generated by cvs2svn to compensate for changes in r15423,
which included commits to RCS files with non-trunk default branches.
1996-04-28 04:16:06 +00:00
jkh
fd7d53abb8 Fix an ancient index list bug.
Make FTP re-initializion work.
Fix fix fix.
1996-04-28 03:27:26 +00:00
jkh
a082b04410 Move some of functions around in order to make this stuff easier
to work on.
1996-04-28 01:07:27 +00:00
jkh
034f07f7c8 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
jkh
878aff132c Add a missing helpfile for fixit. 1996-04-27 07:18:59 +00:00
jkh
d55392a274 More misc menu hackery. 1996-04-27 07:04:12 +00:00
jkh
24f34d459d Update more docs to match -current reality. 1996-04-27 01:34:47 +00:00
jkh
8c8f947c8c 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
jkh
35e1196ebe These docs were in fair need of updating. 1996-04-25 18:40:02 +00:00
jkh
488b4cacb8 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
jkh
a77c833943 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
pst
5c398da369 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
96b360c02f - 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
jkh
7aaf24f77d 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
pst
33e31f1259 typo shmrsh -> smrsh 1996-04-22 20:30:09 +00:00
pst
f4fa36543b Find official home of smrsh 1996-04-21 19:50:46 +00:00
pst
efb70d6d1c 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
223e65965d 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
2bc85bbf31 Added RCS Id and BSD-style copyrights to individual files. 1996-04-18 04:25:17 +00:00
joerg
639a966853 Mention swapinfo as .Nm, so it will be referenced by mkwhatis. 1996-04-17 20:50:44 +00:00
pst
0fd98a2f6e Fix a few bugs in argument processing.
Submitted by:	Timo Kokkonen <tjko@jyu.fi>
1996-04-17 08:57:50 +00:00
wpaul
9c53b6ad43 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
bde
d41bacba01 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
bde
551a3d945e 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
jhay
8d653876bf 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
jkh
d1f2a99932 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
a7f34c320f Remove the legacy -d option from the arguments to mail.local in 4.4bsd. 1996-04-13 11:42:46 +00:00
scrappy
248e7c0177 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
mpp
b2aecb6c53 Fix a typo.
Submitted by:	David Leonard <d@scry.dstc.edu.au>
1996-04-13 02:09:03 +00:00
wpaul
301324e344 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
dg
5f097395da Fix editing mistake in last commit...sorry. 1996-04-11 08:24:04 +00:00
dg
634c38cb39 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
7f78c5620d 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
b56f778ea4 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
smpatel
4a164c67b1 Fix a core dump when the user gives "-w" without an "=" 1996-04-10 00:53:22 +00:00
nate
1703e79644 Remove a file no longer valid as the config file moved to /etc/pccard.conf. 1996-04-09 23:33:08 +00:00
nate
7fbbbc47cb Cleanup useless stuff in Makefile and add a missing NOMAN target. 1996-04-09 23:31:51 +00:00
nate
c5933a861c Removed original distribution files that are no longer valid. 1996-04-09 23:29:07 +00:00
scrappy
416eeac7c4 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
mpp
dfbf6cbddc 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
mpp
d2488e1061 Change references from rpc.bootparamd to bootparamd. 1996-04-07 23:28:25 +00:00