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:
parent
029d2b83e2
commit
d64962e198
@ -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 {
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user