Branch: Tag:

1999-04-21

1999-04-21 16:48:05 by Henrik Grubbström (Grubba) <grubba@grubba.org>

PUT now supports FTP again.

Rev: server/modules/filesystems/filesystem.pike:1.51

8:   inherit "roxenlib";   inherit "socket";    - constant cvs_version= "$Id: filesystem.pike,v 1.50 1999/04/21 15:42:54 grubba Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.51 1999/04/21 16:48:05 grubba Exp $";   constant thread_safe=1;      
241:   // perror("Done with put.\n");    id[0]->close();    id[1]->set_blocking(); -  if (putting[id[1]]) { +  if (putting[id[1]] && (putting[id[1]] != 0x7fffffff)) {    // Truncated!    id[1]->write("400 Bad Request - Expected more data.\r\n"    "Content-Length: 0\r\n\r\n");
273:    destruct(id[0]);    destruct(id[1]);    } else { +  if (putting[id[1]] != 0x7fffffff) {    putting[id[1]] -= bytes; -  +  }    if(putting[id[1]] <= 0) {    putting[id[1]] = 0; // Paranoia    done_with_put( id );