aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sysinstall/ftp.c
Commit message (Collapse)AuthorAgeFilesLines
* Farewall, sysinstall! You served us well for many years, but 10.0 is oneNathan Whitehorn2011-10-031-282/+0
| | | | | | | | | | | 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
* MACHINE is changed to "pc98" on FreeBSD/pc98.Yoshihiro Takahashi2005-12-081-6/+0
| | | | Notes: svn path=/head/; revision=153231
* The MACHINE variable on pc98 is "i386". So, use "pc98" directly in PC98 case.Yoshihiro Takahashi2002-10-141-0/+6
| | | | Notes: svn path=/head/; revision=105104
* Introduce DEVICE_INIT, DEVICE_GET, and DEVICE_SHUTDOWN macros. As theDima Dorfman2001-07-021-4/+4
| | | | | | | | | | | | names suggest, they perform methods on Device's. In addition, they check that the pointer passed to them is valid; if it isn't, they pretend that the action failed. This fixes some crashes due to NULL dereferences (e.g., PR 26509). Approved by: jkh (some time ago) Notes: svn path=/head/; revision=79065
* Avoid sending a pointless `CWD .' command which confuses someMurray Stokely2001-03-141-1/+3
| | | | | | | | | non-standard ftp servers. PR: 21856 Notes: svn path=/head/; revision=74242
* Enable the same path deduction as for ftp install (great for snapshot tests)Jordan K. Hubbard2000-12-061-1/+1
| | | | | | | | | | Allow user to change proxy server Allow user to change ftp path Submitted by: pho Notes: svn path=/head/; revision=69647
* Remove the bogus check against "none" for release names (whichJordan K. Hubbard2000-09-221-3/+3
| | | | | | | | | | | | | really doesn't make any sense, what was I smoking) and allow the more canonical usage of "any" for either side of the comparison for release name or architecture (meaning you can also set CD_VERSION=any in a cdrom.inf file to cause sysinstall to always match it and likewise with the architecture, if specified). Sensibly suggested by: Makoto MATSUSHITA <matusita@jp.FreeBSD.org> Notes: svn path=/head/; revision=66225
* Simplify the ftp directory search code a little and eliminate a warning.Jordan K. Hubbard2000-09-191-6/+4
| | | | Notes: svn path=/head/; revision=66059
* Use a much saner method of locating the release directory on an FTP server.John Baldwin2000-07-251-17/+45
| | | | | | | | | | | | Now, if a release is specified, instead of just looking for a directory with the same name as the release, try several possible directories (each suffixed with the release name) relative to the base directory including ".", "releases/MACHINE", "snapshots/MACHINE", and each of those prefixed with "pub/FreeBSD/". This will allow us to remove the evil symlinks under pub/FreeBSD/releases/MACHINE/ to the snapshots on the ftp site. Notes: svn path=/head/; revision=63859
* IPv6 support.Hajimu UMEMOTO2000-07-141-2/+3
| | | | | | | | | | | | | | IPv6 configuration is only done by rtsol. Does someone really need manual configuration? :-) You can specify IPv6 DNS server as well. We have only one server ftp7.jp.freebsd.org that speaks IPv6 in this time. ftp7.jp speaks IPv4 as well and also listed as Japan #7. Approved by: jkh Notes: svn path=/head/; revision=63118
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50479
* Collapse the "get" code substantially by combining common functions.Jordan K. Hubbard1998-12-221-9/+3
| | | | | | | | Also make mountpoint for each media type easier to change. Also reshuffled some menus for easier usage. Notes: svn path=/head/; revision=42005
* MF22: only fclose() OpenConn if non-NULL.Jordan K. Hubbard1998-01-281-3/+5
| | | | Notes: svn path=/head/; revision=32845
* Don't attempt to deref OpenConn after it's been set to NULL. :)Jordan K. Hubbard1997-10-031-4/+6
| | | | Notes: svn path=/head/; revision=30074
* For people running paranoid ftpds, use the real username to log inJordan K. Hubbard1997-10-031-2/+11
| | | | | | | | with when running multi-user and we actually have one. Suggested by: Joao Carlos Mendes Luis <jonny@coppe.ufrj.br> Notes: svn path=/head/; revision=30067
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22988
* Argh! Last-minute typo fix (having this be broken in -current sucks).Jordan K. Hubbard1997-02-181-1/+1
| | | | Notes: svn path=/head/; revision=22883
* Don't just unset FTP_PATH unilaterally, it might have been a timeoutJordan K. Hubbard1997-02-181-5/+3
| | | | | | | in which case we should simply log in again. Notes: svn path=/head/; revision=22858
* Sync with RELENG_2_2 changes.Jordan K. Hubbard1997-01-301-11/+28
| | | | Notes: svn path=/head/; revision=22113
* Cosmetic tweaks.Jordan K. Hubbard1997-01-291-2/+2
| | | | | | | Also redirect stderr to Debug when running multiuser. Notes: svn path=/head/; revision=22102
* Fix a variety of problems with my timeout handling, make it moreJordan K. Hubbard1997-01-181-5/+8
| | | | | | | | configurable (you can now set the timeout interval), fix a crash-bug when no network device was attached. Notes: svn path=/head/; revision=21855
* Now that I know which parts of the installation really need it (sinceJordan K. Hubbard1997-01-171-11/+13
| | | | | | | | there's no menu display bug to work around now), be far more selective in my use of DITEM_RECREATE (which is slow and involves much screen I/O). Notes: svn path=/head/; revision=21792
* Keep our serial ports distinct so that first device is not found forJordan K. Hubbard1997-01-151-2/+3
| | | | | | | | | all (closes PR#2296). Print better FTP failure diagnostics Do better media failure checking in install. Notes: svn path=/head/; revision=21730
* Make the FTP installation codepath a lot more defensive. TrapJordan K. Hubbard1997-01-151-1/+4
| | | | | | | | | bogus path and FTP I/O errors much earlier, offer retry possibilities at steps along the way so you don't have to resume from the very beginning again on a hard error. Notes: svn path=/head/; revision=21710
* 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
* Do something I've wanted to do for quite some time - collapse all theJordan K. Hubbard1997-01-031-3/+1
| | | | | | | | common layout code into some work functions and make all the layout-using routine adopt them. Also reorganize includes and generally clean up. Notes: svn path=/head/; revision=21243
* 1. Correct bogon in cdromInit when running multi-user which took cdrom offlineJordan K. Hubbard1997-01-011-6/+9
| | | | | | | | | | | | | if wrong version. 2. Make sure network device is initialized in ftpInit 3. Eliminate bogus size values in the menus. For now, we'll have to admit that nobody's added it up yet. In the future, these menus should be build dynamically anyway, not declared static. 4. Add more debugging to networking code to chase the mystery ppp device problem. Notes: svn path=/head/; revision=21170
* Cosmetic tweaks, initialize a few variables, fix a reversed conditional.Jordan K. Hubbard1996-12-111-3/+3
| | | | Notes: svn path=/head/; revision=20335
* Do a few things I've been threatening to do for a long time:Jordan K. Hubbard1996-12-111-421/+175
| | | | | | | | | | | | | | | | | | | 1. Don't use the MSDOSFS code for accessing FreeBSD distribution data. Use Robert Nordier's stand-alone DOS I/O library for the purpose. It this works as well as Robert says it does, it should drastically reduce (or even eliminate) our "I can't install from my DOS partition!" calls. 2. As a result of the above, go to stdio file descriptors for all media types. 3. Taking advantage of #2, start using libftpio for FTP transfers instead of maintaining our own parallel version of the FTP transfer code. Yay! I ripped something out for a change! #1 Submitted-By: Robert Nordier <rnordier@iafrica.com> Notes: svn path=/head/; revision=20315
* Handle SIGPIPE in a couple of crucial places.Jordan K. Hubbard1996-08-011-6/+24
| | | | Notes: svn path=/head/; revision=17380
* Fix even more lurking bogons - why do I never find these until the lastJordan K. Hubbard1996-07-081-6/+6
| | | | | | | possible minute? :-) Notes: svn path=/head/; revision=17007
* Add a new -fake argument to make sysinstall not actually change things whileJordan K. Hubbard1996-04-281-40/+43
| | | | | | | I'm testing it. Notes: svn path=/head/; revision=15439
* Update the -current sources from the 2.1 branch.Peter Wemm1995-12-071-5/+11
| | | | | | | Approved (in spirit) by: jkh Notes: svn path=/head/; revision=12661
* Merge RELENG_2_0_5 into HEADRodney W. Grimes1995-06-111-74/+141
| | | | Notes: svn path=/head/; revision=9202
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-34/+34
| | | | Notes: svn path=/head/; revision=8881
* Sync up my work for the night. This should implement ALL possibleJordan K. Hubbard1995-05-291-2/+3
| | | | | | | | | installation methods and provide a fairly robust set of menu options. This should also fix a few more bugs on Poul-Henning's latest gripe list. Notes: svn path=/head/; revision=8837
* Add a little more debugging to the lowlevel ftp stuff.Poul-Henning Kamp1995-05-271-2/+4
| | | | Notes: svn path=/head/; revision=8790
* Clean up the configuration stuff a bit more - we should now populateJordan K. Hubbard1995-05-261-1/+3
| | | | | | | | | /etc with good things(tm). Fire off ppp with all the proper initial options set. Notes: svn path=/head/; revision=8768
* media_strategy.c: Add explanation for URL.Poul-Henning Kamp1995-05-251-11/+18
| | | | | | | ftp.c: Clean up debug, improve error handling. Notes: svn path=/head/; revision=8746
* Never commit before breakfast: A typo. Sorry Gary.Poul-Henning Kamp1995-05-241-4/+4
| | | | Notes: svn path=/head/; revision=8732
* Close the transfer socket.Poul-Henning Kamp1995-05-241-1/+5
| | | | Notes: svn path=/head/; revision=8729
* "Bring out your dead!" Always try to reap the children we leave around.Jordan K. Hubbard1995-05-241-2/+2
| | | | Notes: svn path=/head/; revision=8728
* Bring everybody up to date on my morning's work.Jordan K. Hubbard1995-05-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | 1. Fix a few bugs in the ftp installation code and implement proper ftp and network shutdown routines. 2. Clean up the menus a fair bit - add a FreeBSD configuration menu. 3. Eliminate the last of the "chaining" - the installation now does the most obvious thing in the most obvious cases and doesn't present you with more menus than you were expecting. This makes it necessary to be a little more explicit in places, but it's still less confusing. 4. Add a few more safety nets for the user. Change a few hard-and-fast limits to warnings (it now runs as non-root, Bruce). 5. Add descriptions for all the supported ethernet cards. 6. Make the cpio floppy extract put up a menu requesting the drive you wish to use if you have more than one; don't just always assume drive A. Notes: svn path=/head/; revision=8727
* Makefile:Gary Palmer1995-05-241-17/+24
| | | | | | | | | | | | | Add testftp: target ftp.c: add more debugging output and fix a few more problems media_strategy: make the ftp system actually do something resembling common sense. it now works after a fashion, although it soon falls over for some reason. Notes: svn path=/head/; revision=8726
* Sync to latest ftp-capable sysinstall. We're getting there!Jordan K. Hubbard1995-05-241-178/+264
| | | | Notes: svn path=/head/; revision=8722
* Add a final configuration menu and the beginnings of the backing codeJordan K. Hubbard1995-05-241-13/+25
| | | | | | | | for it. The ftp installation method is working well enough to test. Many more bug fixes, says Gary. Notes: svn path=/head/; revision=8715
* 1. Bring in the first cut of Poul's ftp routines. We still don'tJordan K. Hubbard1995-05-231-0/+252
use them yet, but it's close (we're working on the last wrinkles in the CD install for now). 2. Complete the CDROM installation strategy code. 3. Simplify the distribtuion loading code. 4. General error message cleanup. 5. Write the /etc/fstab file now and split those routines into config.c 6. Clean up the menus a little more. Notes: svn path=/head/; revision=8705