aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sysinstall/variable.c
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagrelease/7.0.0_cvscvs2svn2008-02-241-1/+1
| | | | | | 'RELENG_7_0_0_RELEASE'. This commit was manufactured to restore the state of the 7.0-RELEASE image.
* Significantly reduce the memory leak as noted in BUGS section forSean Farley2007-07-041-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | setenv(3) by tracking the size of the memory allocated instead of using strlen() on the current value. Convert all calls to POSIX from historic BSD API: - unsetenv returns an int. - putenv takes a char * instead of const char *. - putenv no longer makes a copy of the input string. - errno is set appropriately for POSIX. Exceptions involve bad environ variable and internal initialization code. These both set errno to EFAULT. Several patches to base utilities to handle the POSIX changes from Andrey Chernov's previous commit. A few I re-wrote to use setenv() instead of putenv(). New regression module for tools/regression/environ to test these functions. It also can be used to test the performance. Bump __FreeBSD_version to 700050 due to API change. PR: kern/99826 Approved by: wes Approved by: re (kensmith) Notes: svn path=/head/; revision=171195
* Back out all POSIXified *env() changes.Andrey A. Chernov2007-05-011-1/+1
| | | | | | | | | | | | Not because I admit they are technically wrong and not because of bug reports (I receive nothing). But because I surprisingly meets so strong opposition and resistance so lost any desire to continue that. Anyone who interested in POSIX can dig out what changes and how through cvs diffs. Notes: svn path=/head/; revision=169177
* Prepare for upcoming POSIXed putenv() rewrite:Andrey A. Chernov2007-04-301-1/+1
| | | | | | | don't allow putenv() arg be on the stack, use strdup() Notes: svn path=/head/; revision=169128
* Fixed assorted misuses of NULL in integer context.Bruce Evans2004-03-111-1/+1
| | | | Notes: svn path=/head/; revision=126844
* Give users the ability to select an alternative MTA during the installation.Tom Rhodes2003-07-121-10/+40
| | | | | | | | | | | This option adds Postfix and Exim to the list, however, qmail is not added due to license restrictions. Collaborated with: Simon L. Nielsen <simon@nitro.dk> Reviewed by: jhb, re@, -audit. Notes: svn path=/head/; revision=117475
* debugMsg() should end with "\n".Jun Kuriyama2002-11-011-1/+1
| | | | Notes: svn path=/head/; revision=106279
* Add a couple of functions to create persistent variables that willMurray Stokely2001-09-241-0/+37
| | | | | | | | | | | | | | survive a sysinstall Ctrl-C -> 'Restart'. This fixes another annoying bug where restarting sysinstall will try to reload kernel modules and do other external things that have already been done. For now, use these persistent variables to keep track of module, usbd, and pccardd initialization. Bug found by: rwatson MFC after: 1 week Notes: svn path=/head/; revision=83880
* Add a function to free all of sysinstall's internal variables from theMurray Stokely2001-09-221-2/+32
| | | | | | | | | | | | environment. This fixes an annoying bug where hitting Ctrl-C and telling sysinstall to 'restart' will do no such thing since many of the options are still set and so you won't be prompted for them again. MFC after: 1 week Notes: svn path=/head/; revision=83820
* Mark relevant functions __printflike()/__printf0like() and silence some ofKris Kennaway2001-07-051-1/+1
| | | | | | | | | the non-constant format string warnings. MFC after: 1 week Notes: svn path=/head/; revision=79304
* Fix the HTTP transfer code to correctly parse the port number ifJordan K. Hubbard2000-07-301-2/+4
| | | | | | | | | specified. Submitted by: pho Notes: svn path=/head/; revision=64033
* Clean up some of the abstraction in this code.Jordan K. Hubbard2000-02-261-2/+2
| | | | Notes: svn path=/head/; revision=57500
* Oh crud, did I ever screw the pooch! Rather than sync this with -stable,Jordan K. Hubbard1999-09-021-1/+4
| | | | | | | | | | | | | I backed-out the changes in -current and didn't touch stable at all (I thought I had my patch order reversed, not what actually happened). AIEEE! I can't even blame the crack for this one since I broke my crack pipe a few weeks ago. I think sleep deprivation gets the blame for this one. Medal for noticing this one goes to: Jim Bloom <bloom@acm.org> Notes: svn path=/head/; revision=50780
* MFC: Catch 3.2-stable sysinstall up to 4.0-current level functionality,Jordan K. Hubbard1999-09-011-4/+1
| | | | | | | | | | bringing in DHCP support. The only thing I left out were Poul-Henning's newfs changes since I'm not sure if he's brought the rest of that support into -stable yet. If it turns out that this is the case, I'll MFC those changes too. Notes: svn path=/head/; revision=50725
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50479
* Re-enable DHCP client support again (but optional and turned off by defaultJordan K. Hubbard1999-07-161-2/+5
| | | | | | | | | for the time being) for debugging purposes. Fix bug in options selection. Notes: svn path=/head/; revision=48843
* Totally change the way variables are accounted for in sysinstall.Jordan K. Hubbard1999-02-051-15/+15
| | | | | | | | | | | Now we know which variables are internal and which need to be backed to /etc/rc.conf.site. rc.conf is not touched now. Also kget kernel change information back properly and set up a loader.rc file to use it. Notes: svn path=/head/; revision=43685
* MF22: Paul Traina's changes.Jordan K. Hubbard1998-07-181-1/+25
| | | | Notes: svn path=/head/; revision=37735
* Reformatting, more sanity checks.Jordan K. Hubbard1998-03-151-6/+9
| | | | Notes: svn path=/head/; revision=34604
* Correct misfeature with quoting, better error reporting.Jordan K. Hubbard1998-03-101-6/+10
| | | | Notes: svn path=/head/; revision=34472
* Separate the siamese twins that were the partition and label editor.Jordan K. Hubbard1997-10-121-1/+11
| | | | | | | | | Now you can use one without entering the other and it will DTRT. These changes just allowed me to do the most straight-forward new disk installation I've ever managed with sysinstall. Notes: svn path=/head/; revision=30345
* YAMF22Jordan K. Hubbard1997-06-131-1/+27
| | | | Notes: svn path=/head/; revision=26610
* YAMF22 - Bugs Of Evil in variable handling and rc.conf editing.Jordan K. Hubbard1997-06-111-11/+10
| | | | | | | PR#: 3218 [partial] Notes: svn path=/head/; revision=26560
* Resurrect / implement some of the more esoteric scripting features,Jordan K. Hubbard1997-06-051-3/+6
| | | | | | | such as partitioning a disk or overriding an interactive prompt. Notes: svn path=/head/; revision=26456
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22988
* Minor cleanup, adjust for latest version of apache web server.Jordan K. Hubbard1997-01-161-1/+0
| | | | Notes: svn path=/head/; revision=21765
* Clean up a long-standing bug in the scripting code. You could set variables,Jordan K. Hubbard1997-01-161-2/+9
| | | | | | | | but you couldn't call functions! Now you can do both. Guard against whitespace pollution in variable names. Notes: svn path=/head/; revision=21764
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Be more efficient in how we use memory (stumbled across while looking forJordan K. Hubbard1996-12-111-16/+20
| | | | | | | | | something else) for attributes and variables. Remove stack-stomper in sstrncpy(). Notes: svn path=/head/; revision=20331
* As Paul has just pointed out, much of my strncpy() usage was eitherJordan K. Hubbard1996-12-091-5/+5
| | | | | | | | | | bogus or overly complex and really needed to be done more consistently and sanely throughout - no question about it. Done. Suggested-By: Paul Traina <pst@Shockwave.COM> Notes: svn path=/head/; revision=20247
* Fix a truly stupid bug which broke the package installation menuJordan K. Hubbard1996-06-121-1/+7
| | | | | | | | 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. Notes: svn path=/head/; revision=16326
* Add some more debugging statements.Jordan K. Hubbard1996-04-291-1/+3
| | | | Notes: svn path=/head/; revision=15445
* Bring this into sync.Jordan K. Hubbard1996-04-231-4/+2
| | | | | | | | | | | | | 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! Notes: svn path=/head/; revision=15355
* 1. Update all the copyrights to delete useless clauses 3 and 4.Jordan K. Hubbard1996-04-131-8/+1
| | | | | | | | 2. Change more of the menu code over to new system. 3. Streamline label editor. Notes: svn path=/head/; revision=15242
* Update the -current sources from the 2.1 branch.Peter Wemm1995-12-071-5/+61
| | | | | | | Approved (in spirit) by: jkh Notes: svn path=/head/; revision=12661
* Merge RELENG_2_0_5 into HEADRodney W. Grimes1995-06-111-2/+11
| | | | Notes: svn path=/head/; revision=9202
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-3/+3
| | | | Notes: svn path=/head/; revision=8881
* Commit parts of reorg that were diffs. Substantially re-engineer theJordan K. Hubbard1995-05-271-3/+1
| | | | | | | extraction and mediaGetFTP() handshaking to solve some unexpected complexities. Notes: svn path=/head/; revision=8792
* Clean up the variable handling code a little.Jordan K. Hubbard1995-05-261-18/+19
| | | | | | | Write /etc/hosts in the right place. Notes: svn path=/head/; revision=8771
* 1. Fix a pathological bug I introduced in msgInfo(). Right idea, wrongJordan K. Hubbard1995-05-201-1/+3
| | | | | | | | | | | | | | | | | | | | | implementation. 2. Totally rework device registration. It's about half the size and more powerful now. 3. Add DOS discovery. 4. Start filling in some of the strategy routines. 5. Another clean-up pass over the menus. 6. Make wizard code use Disk typedef. If I can get the first strategy routine finished tonite, we should have a working install (from ftp, at least) this weekend. Notes: svn path=/head/; revision=8641
* Commit my latest changes before having a nap. Still not close to done,Jordan K. Hubbard1995-05-011-0/+80
nor is it in sync with my working sources, but it leaves me less CVS hassles to bring in the new files at this time. Still no documentation to translate quite yet, but soon. This stuff is actually very close now. Notes: svn path=/head/; revision=8208