version 1.99, 2010/06/03 07:50:02 |
version 1.100, 2010/06/29 23:12:33 |
|
|
} |
} |
|
|
#ifndef SMALL |
#ifndef SMALL |
if (resume && (strcmp(savefile, "-") == 0)) { |
if (resume && pipeout) { |
warnx("can't append to stdout"); |
warnx("can't append to stdout"); |
goto cleanup_url_get; |
goto cleanup_url_get; |
} |
} |
|
|
filesize = st.st_size; |
filesize = st.st_size; |
|
|
/* Open the output file. */ |
/* Open the output file. */ |
if (strcmp(savefile, "-") != 0) { |
if (!pipeout) { |
#ifndef SMALL |
#ifndef SMALL |
if (resume) |
if (resume) |
out = open(savefile, O_CREAT | O_WRONLY | |
out = open(savefile, O_CREAT | O_WRONLY | |
|
|
} |
} |
|
|
/* Open the output file. */ |
/* Open the output file. */ |
if (strcmp(savefile, "-") != 0) { |
if (!pipeout) { |
#ifndef SMALL |
#ifndef SMALL |
if (resume) |
if (resume) |
out = open(savefile, O_CREAT | O_WRONLY | O_APPEND, |
out = open(savefile, O_CREAT | O_WRONLY | O_APPEND, |