summaryrefslogtreecommitdiffstats
path: root/src/core/posix_io.c
diff options
context:
space:
mode:
authorMichael Brown2009-03-30 14:24:56 +0200
committerMichael Brown2009-03-30 14:24:56 +0200
commit323cdf8c4c510fc6da081b96994d0131c11a29dd (patch)
tree268806d5d1de34a96a446356a065057b060c7282 /src/core/posix_io.c
parent[bzimage] Support old (pre-2.00 bootloader) Linux kernel formats (diff)
downloadipxe-323cdf8c4c510fc6da081b96994d0131c11a29dd.tar.gz
ipxe-323cdf8c4c510fc6da081b96994d0131c11a29dd.tar.xz
ipxe-323cdf8c4c510fc6da081b96994d0131c11a29dd.zip
[xfer] Implement xfer_vreopen() to properly handle redirections
When handling a redirection event, we need to close the existing connection before opening the new connection.
Diffstat (limited to 'src/core/posix_io.c')
-rw-r--r--src/core/posix_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/posix_io.c b/src/core/posix_io.c
index e0459bdf..6f6d815a 100644
--- a/src/core/posix_io.c
+++ b/src/core/posix_io.c
@@ -137,7 +137,7 @@ posix_file_xfer_deliver_iob ( struct xfer_interface *xfer,
/** POSIX file data transfer interface operations */
static struct xfer_interface_operations posix_file_xfer_operations = {
.close = posix_file_xfer_close,
- .vredirect = xfer_vopen,
+ .vredirect = xfer_vreopen,
.window = unlimited_xfer_window,
.alloc_iob = default_xfer_alloc_iob,
.deliver_iob = posix_file_xfer_deliver_iob,