summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Enable NIS supportpst1996-10-091-3/+5
|
* DTRT if ESC is hit in a Yes/No dialog.jkh1996-10-0910-23/+27
| | | | Noticed-by: jfieber
* Add the feature to use MYADDR & HISADDR macroes as arguments tosos1996-10-071-2/+12
| | | | a shell escape.
* Properly include prototypes.jkh1996-10-072-2/+7
| | | | Submitted-by: "Daniel O'Callaghan" <danny@panda.hilink.com.au>
* Add passwdauth to list of vars.jkh1996-10-061-3/+3
| | | | Submitted-by: Peter Childs <pjchilds@imforei.apana.org.au>
* Sigh. There are still some weird boundry cases (argh!). Turnjkh1996-10-062-2/+2
| | | | off SAVE_USERCONFIG again until Eric comes back from his trip.
* Detect the zero-chunks case properly, now that I've reversed the orderjkh1996-10-063-3/+12
| | | | | | of the distribution probes over ftp. Properly #ifdef the SAVE_USERCONFIG code.
* Add support for the Evil Microsoft ppp extentions. Yes, they did itjkh1996-10-0612-36/+502
| | | | | | | | on their own without even attempting to get concensus in the IETF, but there are also lots of Win95/NT boxes out there. CLoses PR#1494 Submitted-By: Peter Childs <pjchilds@imforei.apana.org.au>
* Correctly re-adjust current slice # when slices are deleted.jkh1996-10-064-168/+236
| | | | Beautify the code a little.
* Turn SAVE_USERCONFIG on again - I found the bug.jkh1996-10-062-2/+2
|
* Better PKG_TMPDIR handling.jkh1996-10-061-3/+2
|
* Be more paranoid about clearing the FTP path when we have the slightestjkh1996-10-061-3/+10
| | | | reason to doubt its authenticity.
* delete doubled words, e.g.: "the the" -> "the"wosch1996-10-054-8/+10
|
* Make the save_userconfig() stuff conditional and turned off by defaultjkh1996-10-055-61/+58
| | | | | (for now - still a few more wrinkles here). Add more debugging code and some cosmetic tweaks.
* syslogd has always bugged me with it's async startup at boot time.peter1996-10-051-6/+71
| | | | | | | | | | | | | | | | | | | For me, more often than not, the backgrounded syslogd daemon is not yet ready to process log messages before other things (such as named) want to log a heap of them. It seems that it's the O_SYNC writes of the stuff coming in from /dev/klog that's the slowdown. Anyway, instead of using the libc daemon, roll a modified version. This one has a timeout. The child will wait for either the timeout to expire or the child process to signal it to let it know that it's "ready" and the /dev/log socket is set up and active, so it's safe to continue the boot. It adds a small fraction of a second pause to the boot time, but on the other hand the overall boot time is *quicker* since the disk is not being thrashed while the log messages are getting written out synchronously one by one while other daemons are loading in parallel. The timeout is in case the child segfaults or something before becoming fully operational.
* Wait for any stray processes we might be sent while running as init.jkh1996-10-051-1/+5
| | | | | I have cautious hopes that this will fix the package installer zombie accumulation problem.
* Correct check for ensuring that the network configuration isn't fiddled withjkh1996-10-051-9/+9
| | | | when running multi-user.
* 1. Change device probing so that high speed network devices are found beforejkh1996-10-054-108/+106
| | | | | | | | | | | SLIP/PPP devices, putting them before the others in the network device selection menu. 2. Change "Other" to "URL" so as not to conflict with the keyboard accellerator for the "OK" button in FTP site selection menu. 3. Detect the NULL last symbol in the name list and initialize the other members correctly.
* Multiple changes stacked as one commit since they all depend on one another.jkh1996-10-054-24/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First, change sysinstall and the Makefile rules to not build the kernel nlist directly into sysinstall now. Instead, spit it out as an ascii file in /stand and parse it from sysinstall later. This solves the chicken-n- egg problem of building sysinstall into the fsimage before BOOTMFS is built and can have its symbols extracted. Now we generate the symbol file in release.8. Second, add Poul-Henning's USERCONFIG_BOOT changes. These have two effects: 1. Userconfig is always entered, rather than only after a -c (don't scream yet, it's not as bad as it sounds). 2. Userconfig reads a message string which can optionally be written just past the boot blocks. This string "preloads" the userconfig input buffer and is parsed as user input. If the first command is not "USERCONFIG", userconfig will treat this as an implied "quit" (which is why you don't need to scream - you never even know you went through userconfig and back out again if you don't specifically ask for it), otherwise it will read and execute the following commands until a "quit" is seen or the end is reached, in which case the normal userconfig command prompt will then be presented. How to create your own startup sequences, using any boot.flp image from the next snap forward (not yet, but soon): % dd of=/dev/rfd0 seek=1 bs=512 count=1 conv=sync <<WAKKA_WAKKA_DOO USERCONFIG irq ed0 10 iomem ed0 0xcc000 disable ed1 quit WAKKA_WAKKA_DOO Third, add an intro screen to UserConfig so that users aren't just thrown into this strange screen if userconfig is auto-launched. The default boot.flp startup sequence is now, in fact, this: USERCONFIG intro visual (Since visual never returns, we don't need a following "quit"). Submitted-By: phk & jkh
* Add stuff to CLEANFILES.jkh1996-10-052-2/+2
|
* Various cosmetic tweaks.jkh1996-10-046-42/+56
|
* Syncronize my tree so Eric can access the latest code.jkh1996-10-0412-62/+70
|
* Temporarily disable userconfig saving until I figure out why uc_open()jkh1996-10-032-2/+6
| | | | | loops internally for BOOTMFS (not being able to run gdb on sysinstall when it's running as init is a real pain!).
* Check return values from uc_open() correctly. Note: This seems to workjkh1996-10-032-6/+6
| | | | | really well when running the GENERIC kernel but not with the BOOTMFS kernel. Further work is needed.
* Fix the "missing nameserver value" bug. Simplify some unnecessarilyjkh1996-10-032-30/+44
| | | | crufty code, here and there.
* First cut at a "copy userconfig changes from installation kernel to installedjkh1996-10-037-119/+187
| | | | | | kernel" mechanism. This is just the foundation - more work follows and will be committed over the next few hours. Submitted-by: "Eric L. Hernes" <erich@lodgenet.com> & jkh
* One small policy tweak to something I like better.jkh1996-10-024-6/+10
|
* More strategic screen clears().jkh1996-10-022-24/+52
|
* Fixes and a place-holder for future work.jkh1996-10-023-14/+28
|
* Catch a clear() I missed.jkh1996-10-022-10/+12
|
* Don't annoyingly reconfigure the network when you don't have to.jkh1996-10-021-7/+16
|
* More tweaks to FTP reselection code - allow "none" to stand forjkh1996-10-021-2/+2
| | | | "no specific release - use anything you can find"
* Try to get the info file before the whole file - it eliminatesjkh1996-10-021-27/+29
| | | | a gratuitous fetch attempt in most situations.
* Make FTP site reselection work the way it always should have.jkh1996-10-021-18/+1
|
* Release setuid immediately after initializing; this minimizes thefenner1996-10-014-19/+21
| | | | | | | | possibility of security holes allowing root penetration. Inspired by: Mark Handley <M.Handley@cs.ucl.ac.uk> and Theo de Raadt <deraadt@theos.com> independently Submitted by: Theo de Raadt <deraadt@theos.com>
* Round 2.5jkh1996-10-015-20/+40
|
* Installation cleanup, round II.jkh1996-10-0111-91/+179
|
* Saner screen refresh changes, part I.jkh1996-10-018-50/+66
|
* Fix potential buffer overrunpst1996-10-011-5/+8
|
* Close a potential security hole: if yp_access() is passed a map name,wpaul1996-09-301-4/+15
| | | | | | | | | | | | | | | have it check to see that it doesn't contain any '/' characters. This prevents possible silliness like ypcat "../../../kernel". We already test the domain name for this in yp_validdomain(), and ypserv itself tests the map name in yp_open_db(), but it doesn't hurt to be paranoid and test for it in the generic access routine too. rpc.ypxfrd does not test the map name for slashes, but it does call yp_access() with the map name, so this removes a potential vulnerability from there. Also make the tests for IPPORT_RESERVED a little more selective: make sure it trips when map == master.passwd.*, prog == YPPROC and proc == YPPROC_XFR, and prog == YPXFRD_FREEBSD_PROG and proc == YPXFRD_GETMAP. Also use IPPORT_RESERVED instead of hard-coded value.
* Grab traceroute out of src/contrib/traceroutefenner1996-09-307-1429/+14
|
* Make this more usable from shell scripts and such by adding a non-interactivejkh1996-09-301-9/+19
| | | | | flag and some checking to see if it's even reasonable to ask for confirmation at all.
* Include <fcntl.h> so that this doesn't depend on the KERNEL versionbde1996-09-291-0/+1
| | | | | of <sys/file.h> including <sys/fcntl.h>. Only the !KERNEL version of <sys/file.h> will do that when I unspam the kernel headers.
* Close files up to getdtablesize(), instead of up to NOFILE.bde1996-09-292-10/+18
| | | | lpd was one of 3 programs in /usr/src that (mis)used NOFILE.
* Correct a minor misspelling.jkh1996-09-292-4/+4
| | | | Noticed-by: der
* Removed references to pathconf-related variables that were never handledbde1996-09-281-10/+3
| | | | | | | | | | by sysctl and never can be in their documented form (kern.name_max would have to become fs.filesystemname.name_max, etc.). Added missing references to user.stream_max and user.tzname_max. These seem to misnamed. <sys/sysconf.h> says that they correspond to POSIX2 names, but the sysconf names don't have POSIX2 or "posix2" like all the other POSIX2 names.
* Moved getdtablesize() out of a loop.bde1996-09-281-3/+4
|
* Add info field.pst1996-09-271-1/+1
| | | | Closes pr docs/1679.
* Rate limit the "xxx bytes read from" message to a maximum of one perpst1996-09-261-4/+10
| | | | | chunk or one per second, whichever is less. Outputting this message once every couple of K was really crazy on a 9600bps serial console.
* If we're running through the FTP setup dialog the *first* time, skippst1996-09-261-5/+11
| | | | | the FTP path if we've already configured one (this allows preconfigured ftp servers).
OpenPOWER on IntegriCloud