summaryrefslogtreecommitdiff
path: root/usr.sbin/sysinstall/variable.c
AgeCommit message (Collapse)Author
2011-10-03Farewall, sysinstall! You served us well for many years, but 10.0 is oneNathan Whitehorn
digit beyond your time. Various sysinstall dependencies (e.g. libftpio, libdisk, libodialog, etc.) will be cleaned up in coming days. Some will take longer than others due to a few other consumers (tzsetup and sade). Notes: svn path=/head/; revision=225937
2008-05-11Better to just statically set the name vs. determine at run time.David E. O'Brien
Notes: svn path=/head/; revision=178946
2008-05-11Sync program name agnostic changes with SADE.David E. O'Brien
Notes: svn path=/head/; revision=178941
2007-07-04Significantly reduce the memory leak as noted in BUGS section forSean Farley
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
2007-05-01Back out all POSIXified *env() changes.Andrey A. Chernov
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
2007-04-30Prepare for upcoming POSIXed putenv() rewrite:Andrey A. Chernov
don't allow putenv() arg be on the stack, use strdup() Notes: svn path=/head/; revision=169128
2004-03-11Fixed assorted misuses of NULL in integer context.Bruce Evans
Notes: svn path=/head/; revision=126844
2003-07-12Give users the ability to select an alternative MTA during the installation.Tom Rhodes
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
2002-11-01debugMsg() should end with "\n".Jun Kuriyama
Notes: svn path=/head/; revision=106279
2001-09-24Add a couple of functions to create persistent variables that willMurray Stokely
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
2001-09-22Add a function to free all of sysinstall's internal variables from theMurray Stokely
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
2001-07-05Mark relevant functions __printflike()/__printf0like() and silence some ofKris Kennaway
the non-constant format string warnings. MFC after: 1 week Notes: svn path=/head/; revision=79304
2000-07-30Fix the HTTP transfer code to correctly parse the port number ifJordan K. Hubbard
specified. Submitted by: pho Notes: svn path=/head/; revision=64033
2000-02-26Clean up some of the abstraction in this code.Jordan K. Hubbard
Notes: svn path=/head/; revision=57500
1999-09-02Oh crud, did I ever screw the pooch! Rather than sync this with -stable,Jordan K. Hubbard
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
1999-09-01MFC: Catch 3.2-stable sysinstall up to 4.0-current level functionality,Jordan K. Hubbard
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
1999-08-28$Id$ -> $FreeBSD$Peter Wemm
Notes: svn path=/head/; revision=50479
1999-07-16Re-enable DHCP client support again (but optional and turned off by defaultJordan K. Hubbard
for the time being) for debugging purposes. Fix bug in options selection. Notes: svn path=/head/; revision=48843
1999-02-05Totally change the way variables are accounted for in sysinstall.Jordan K. Hubbard
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
1998-07-18MF22: Paul Traina's changes.Jordan K. Hubbard
Notes: svn path=/head/; revision=37735
1998-03-15Reformatting, more sanity checks.Jordan K. Hubbard
Notes: svn path=/head/; revision=34604
1998-03-10Correct misfeature with quoting, better error reporting.Jordan K. Hubbard
Notes: svn path=/head/; revision=34472
1997-10-12Separate the siamese twins that were the partition and label editor.Jordan K. Hubbard
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
1997-06-13YAMF22Jordan K. Hubbard
Notes: svn path=/head/; revision=26610
1997-06-11YAMF22 - Bugs Of Evil in variable handling and rc.conf editing.Jordan K. Hubbard
PR#: 3218 [partial] Notes: svn path=/head/; revision=26560
1997-06-05Resurrect / implement some of the more esoteric scripting features,Jordan K. Hubbard
such as partitioning a disk or overriding an interactive prompt. Notes: svn path=/head/; revision=26456
1997-02-22Revert $FreeBSD$ to $Id$Peter Wemm
Notes: svn path=/head/; revision=22988
1997-01-16Minor cleanup, adjust for latest version of apache web server.Jordan K. Hubbard
Notes: svn path=/head/; revision=21765
1997-01-16Clean up a long-standing bug in the scripting code. You could set variables,Jordan K. Hubbard
but you couldn't call functions! Now you can do both. Guard against whitespace pollution in variable names. Notes: svn path=/head/; revision=21764
1997-01-14Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard
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
1996-12-11Be more efficient in how we use memory (stumbled across while looking forJordan K. Hubbard
something else) for attributes and variables. Remove stack-stomper in sstrncpy(). Notes: svn path=/head/; revision=20331
1996-12-09As Paul has just pointed out, much of my strncpy() usage was eitherJordan K. Hubbard
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
1996-06-12Fix a truly stupid bug which broke the package installation menuJordan K. Hubbard
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
1996-04-29Add some more debugging statements.Jordan K. Hubbard
Notes: svn path=/head/; revision=15445
1996-04-23Bring this into sync.Jordan K. Hubbard
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
1996-04-131. Update all the copyrights to delete useless clauses 3 and 4.Jordan K. Hubbard
2. Change more of the menu code over to new system. 3. Streamline label editor. Notes: svn path=/head/; revision=15242
1995-12-07Update the -current sources from the 2.1 branch.Peter Wemm
Approved (in spirit) by: jkh Notes: svn path=/head/; revision=12661
1995-06-11Merge RELENG_2_0_5 into HEADRodney W. Grimes
Notes: svn path=/head/; revision=9202
1995-05-30Remove trailing whitespace.Rodney W. Grimes
Notes: svn path=/head/; revision=8881
1995-05-27Commit parts of reorg that were diffs. Substantially re-engineer theJordan K. Hubbard
extraction and mediaGetFTP() handshaking to solve some unexpected complexities. Notes: svn path=/head/; revision=8792
1995-05-26Clean up the variable handling code a little.Jordan K. Hubbard
Write /etc/hosts in the right place. Notes: svn path=/head/; revision=8771
1995-05-201. Fix a pathological bug I introduced in msgInfo(). Right idea, wrongJordan K. Hubbard
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
1995-05-01Commit my latest changes before having a nap. Still not close to done,Jordan K. Hubbard
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