mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-12-23 03:11:49 +01:00
Fix resuming file uploads
This commit is contained in:
parent
d42c710156
commit
09412116ad
@ -579,7 +579,11 @@ static int32_t stor_or_append(client_t *client, FILE *f) {
|
||||
}
|
||||
|
||||
static int32_t ftp_STOR(client_t *client, char *path) {
|
||||
FILE *f = vrt_fopen(client->cwd, path, "wb");
|
||||
char *openMode = "wb";
|
||||
if (client->restart_marker) {
|
||||
openMode = "r+";
|
||||
}
|
||||
FILE *f = vrt_fopen(client->cwd, path, openMode);
|
||||
int fd;
|
||||
if (f) {
|
||||
fd = fileno(f);
|
||||
|
Loading…
Reference in New Issue
Block a user