Index: lib/file.c
===================================================================
RCS file: /repository/curl/lib/file.c,v
retrieving revision 1.49
diff -u -r1.49 file.c
--- lib/file.c	4 Mar 2004 15:23:57 -0000	1.49
+++ lib/file.c	5 Mar 2004 09:38:43 -0000
@@ -83,6 +83,7 @@
 #include "escape.h"
 #include "file.h"
 #include "speedcheck.h"
+#include "getinfo.h"
 
 #define _MPRINTF_REPLACE /* use our functions only */
 #include <curl/mprintf.h>
@@ -177,10 +178,14 @@
   int fd;
   struct timeval now = Curl_tvnow();
 
+  Curl_readwrite_init(conn);
+  Curl_initinfo(data);
+  Curl_pgrsStartNow(data);
+
   /* get the fd from the connection phase */
   fd = conn->proto.file->fd;
 
-/*VMS?? -- This only works reliable for STREAMLF files */
+  /* VMS: This only works reliable for STREAMLF files */
   if( -1 != fstat(fd, &statbuf)) {
     /* we could stat it, then read out the size */
     expected_size = statbuf.st_size;
Index: lib/transfer.c
===================================================================
RCS file: /repository/curl/lib/transfer.c,v
retrieving revision 1.206
diff -u -r1.206 transfer.c
--- lib/transfer.c	2 Mar 2004 09:31:19 -0000	1.206
+++ lib/transfer.c	5 Mar 2004 09:38:44 -0000
@@ -1386,7 +1386,7 @@
  * The transfer must already have been setup by a call to Curl_Transfer().
  *
  * Note that headers are created in a preallocated buffer of a default size.
- * That buffer can be enlarged on demand, but it is never shrinken again.
+ * That buffer can be enlarged on demand, but it is never shrunken again.
  *
  * Parts of this function was once written by the friendly Mark Butler
  * <butlerm@xmission.com>.
@@ -1400,7 +1400,10 @@
   struct Curl_transfer_keeper *k = &conn->keep;
   bool done=FALSE;
 
-  Curl_readwrite_init(conn);
+  if(!(conn->protocol & PROT_FILE))
+    /* Only do this if we are not transferring FILE:, since the file: treatment
+       is different*/
+    Curl_readwrite_init(conn);
 
   if((conn->sockfd == -1) && (conn->writesockfd == -1))
     /* nothing to read, nothing to write, we're already OK! */
