summaryrefslogtreecommitdiffstats
path: root/loader2/urls.c
Commit message (Collapse)AuthorAgeFilesLines
* Renamed loader2 subdirectory to loader (hooray for git)David Cantrell2008-08-251-367/+0
|
* Use NetworkManager instead of libdhcp. (#458183)David Cantrell2008-08-251-1/+1
| | | | | | | | | | | Finally, no more libdhcp. This is the first set of changes to take anaconda over to the wonderful world of NetworkManager. We are no longer linking with libdhcp to do interface configuration. NM is started early in the installation and opens the door to things like WPA installation support and things like that.
* Make it more explicit we want the stage2.img URL, not the repo URL.Chris Lumens2008-08-131-1/+1
|
* In cmdline mode, give some feedback when transferring loader files.Chris Lumens2008-07-111-3/+6
|
* Use %m rather than strerror() where appropriate.Peter Jones2008-07-081-4/+2
|
* Check return value of asprintf() consistentlyDavid Cantrell2008-06-271-3/+8
| | | | | | | | | For instances where the asprintf() was ignored, wrap it in a test to check if it failed. If it failed, log a message and abort. There may be some instances where abort may not be what we want to do, however, we were ignoring the return value completely so if we did get a failure, it would just SIGSEGV. Now it will SIGABRT instead.
* Per strtol(3) man page, set errno=0 before call.David Cantrell2008-06-271-0/+1
| | | | | | | | | | From the NOTES section of strtol(3): "Since strtol() can legitimately return 0, LONG_MAX, or LONG_MIN (LLONG_MAX or LLONG_MIN for strtoll()) on both success and failure, the calling program should set errno to 0 before the call, and then determine if an error occurred by checking whether errno has a non-zero value after the call."
* Use strtol() instead of atoi()David Cantrell2008-06-261-3/+12
| | | | | | | Code cleanup patch. Use strtol() to convert strings to ints, rather than atoi(). No error checking capability with atoi(). Also add error handling to detect strtol failures.
* Strip urlinstall.c down to just looking for the stage2 image.Chris Lumens2008-06-181-93/+5
|
* Don't crash when given URLs of the form ftp://user@host/path (#445295)David Lehman2008-05-051-0/+1
|
* Only remove duplicate slashes from the front of the prefix.Chris Lumens2008-03-261-1/+1
|
* Avoid piling up slashes in the UI when retrying (#437516).Chris Lumens2008-03-191-1/+1
|
* Only print the filename we're fetching, as newt doesn't like long names.Chris Lumens2008-03-171-2/+4
|
* Remove references to an uninitialized variable.Chris Lumens2008-03-141-3/+3
|
* Fix some errors on reporting which files are being downloaded.Chris Lumens2008-03-141-9/+4
|
* Only pass the file path to {ftp,http}GetFileDesc.Chris Lumens2008-03-071-6/+11
|
* Fix logging messages to not display the hostname twice.Chris Lumens2008-03-071-2/+2
|
* Make sure http:// or ftp:// is specified (#436089)Jeremy Katz2008-03-051-1/+8
|
* Fix segfault when port is specified (#435219)Jeremy Katz2008-03-051-2/+0
|
* Change the method config prompts.Chris Lumens2008-03-041-1/+2
|
* Support stage2= for URL installs.Chris Lumens2008-03-041-19/+5
|
* Remove our own DNS functions, since glibc's are available now.Chris Lumens2008-02-051-13/+10
|
* Free the grid like we do everywhere else.Chris Lumens2008-01-101-4/+3
|
* Don't double free buf.Chris Lumens2008-01-091-2/+0
|
* Make the URL entry box wider.Chris Lumens2008-01-091-1/+1
|
* Fix a segfault in making the URL dialog box.Chris Lumens2008-01-071-1/+1
|
* Use a better test when populating the URL panel in loader.Chris Lumens2008-01-041-2/+2
|
* Clean up typos and other things for GPLv2+ changes.David Cantrell2007-12-171-4/+4
| | | | | | | Shorten 'Red Hat Author(s)' to just 'Author(s)'. Perhaps eventually we'll get an AUTHORS file and will just remove author names from the individual files. Also fixed a type in scripts/dumphdrlist.py where Author was listed twice.
* GPLv2+ boilerplates for loader2/ source files.David Cantrell2007-12-171-9/+16
|
* Don't try to parse a NULL ui structure.Chris Lumens2007-12-111-2/+3
|
* Merge the FTP and HTTP methods into a single URL method.Chris Lumens2007-12-071-154/+69
| | | | | | | This removes the separate FTP and HTTP network method dialogs in the loader and replaces them with a single configuration dialog that asks the user to input a URL. It also modified the secondary config screen to prompt just for a proxy and simplifies a lot of the conversion from URL to UI and back.
* - remove sdupprintf(), use asprintf() instead.Peter Jones2007-10-221-5/+6
|
* Clean up some memory management in HTTP/FTP file transferring. Fix loaderChris Lumens2007-10-121-2/+10
| | | | | segfaults caused by improperly appending the MAC address-specific HTTP headers (#328191).
* Same change you just saw on rhel5-branch ported to the HEAD branch.David Cantrell2007-08-061-1/+1
|
* Whitespace cleanups before code changes.David Cantrell2007-03-061-25/+24
|
* Don't care about the return value of asprintf.Chris Lumens2007-01-091-1/+2
|
* * loader2/urls.c (urlMainSetupPanel): If the user specified http://David Cantrell2007-01-051-2/+8
| | | | | or ftp:// on the site name, trim that before putting it in the ui structure (#220728).
* Added IPv6 DNS lookup support to libisys.David Cantrell2006-11-021-8/+10
|
* Use splitHostname so we don't attempt to gethostbyname on a string containing aChris Lumens2006-10-311-9/+16
| | | | port number (#212622).
* Fix bad info message.Chris Lumens2006-10-161-1/+1
|
* * loader2/urlinstall.c: Do not pass silentErrors toDavid Cantrell2006-08-081-17/+3
| | | | | | | | | | urlinstStartTransfer() (#201247). * loader2/urls.c: Remove redundant download failure messages in the urlinstStartTransfer() function. Do not accept silentErrors as a parameter (#201247). * loader2/urls.h: Prototype update for urlinstStartTransfer().
* Fix traceback when trying to add a leading slash to paths without oneChris Lumens2006-08-041-10/+3
| | | | (#197403, #201243, #201367).
* * loader2/urls.c (addrToIp): Correctly handle IP addresses passed asDavid Cantrell2006-08-011-5/+6
| | | | | | | strings to this function. * loader2/urls.c (urlinstStartTransfer): Commented out mygethostbyname() call for IPv6 family for now, since it's not ready yet.
* * loader2/ftp.c (getHostAddress): Use mygethostbyname().David Cantrell2006-07-311-11/+12
| | | | | | | | * loader2/urls.c (addrToIp): Use mygethostbyname(). * loader2/urls.c (urlinstStartTransfer): Use mygethostbyname() to try and determine host address family before calling ftpOpen() or httpGetFileDesc().
* * loader2/ftp.c (ftpOpen, ftpGetFileDesc): Support IPv6 hosts, whichDavid Cantrell2006-07-271-1/+1
| | | | | | | | | | | | means using the EPSV command instead of PASV. We don't get the IP address of the server in the response, so ftpGetFileDesc needs to bring in the in6_addr we already made for the server so we can then make the socket connection. * loader2/ftp.h: Prototype updates. * loader2/urls.c: Pass the in6_addr for the FTP server to the ftpGetFileDesc() function.
* * loader2/urls.c (urlinstStartTransfer): Determine address familyDavid Cantrell2006-07-261-7/+25
| | | | | | | | | | | | | | | | | | and pass that to the ftpOpen() call. * urlinstall.py (UrlInstallMethod.__init__): Use urlparse. * isys/dns.c, isys/dns.h: Updated for IPv6 support. * loader2/Makefile: Cleanups. * loader2/ftp.c, loader2/ftp.h: Updated for IPv6 support. * loader2/loader.c: Whitespace consistency. * loader2/method.c: Whitespace consistency. * loader2/urls.c: Updated for IPv6 support.
* * loader2/urls.c (addrToIp): Use AF_INET6 when making an in6_addr.David Cantrell2006-07-261-1/+1
|
* * loader2/net.c: Bump inet_pton() buffers to length 48.David Cantrell2006-07-251-11/+9
| | | | | | | Let users skip entering a DNS server in getDnsServers(), but still require a valid one if they enter anything. * loader2/urls.c (addrToIp): Update to support IPv6.
* SNAKES ON A PLANEDavid Cantrell2006-06-281-10/+10
|
* Fix double free() (#195749). This is the "holy shit we see glibc doubleDavid Cantrell2006-06-271-10/+4
| | | | | free ***** error when we try to do an HTTP or FTP install" problem that a lot of people have reported.