The check for r_flag was accidentally removed in the previous commit.

Submitted by:	SANETO Takanori <sanewo@ba2.so-net.ne.jp>
MFC after:	3 days
This commit is contained in:
des 2004-08-26 15:51:10 +00:00
parent 029d2b83e2
commit d64962e198

View File

@ -418,7 +418,7 @@ fetch(char *URL, const char *path)
sb.st_size = -1; sb.st_size = -1;
if (!o_stdout) { if (!o_stdout) {
r = stat(path, &sb); r = stat(path, &sb);
if (r == 0 && S_ISREG(sb.st_mode)) { if (r == 0 && r_flag && S_ISREG(sb.st_mode)) {
url->offset = sb.st_size; url->offset = sb.st_size;
} else { } else {
/* /*