Commit graph

1515 commits

Author SHA1 Message Date
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