summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/posix_io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/posix_io.c b/src/core/posix_io.c
index 2974a4c85..a8876b732 100644
--- a/src/core/posix_io.c
+++ b/src/core/posix_io.c
@@ -224,6 +224,10 @@ int open ( const char *uri_string ) {
if ( ( rc = xfer_open_uri ( &file->xfer, uri_string ) ) != 0 )
goto err;
+ /* Request data */
+ if ( ( rc = xfer_request_all ( &file->xfer ) ) != 0 )
+ goto err;
+
/* Wait for open to succeed or fail */
while ( list_empty ( &file->data ) ) {
step();