diff options
author | des <des@FreeBSD.org> | 2004-08-26 15:51:10 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2004-08-26 15:51:10 +0000 |
commit | d64962e198774de4c9fd48a14388e94616c2d07e (patch) | |
tree | 0a020a05d5e005239ee4ca53834cfa94ccf2fd18 /usr.bin/fetch | |
parent | 029d2b83e2f219122079fd7609573d5f59561cfc (diff) | |
download | FreeBSD-src-d64962e198774de4c9fd48a14388e94616c2d07e.zip FreeBSD-src-d64962e198774de4c9fd48a14388e94616c2d07e.tar.gz |
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
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r-- | usr.bin/fetch/fetch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c index ef82f4e..21890fd 100644 --- a/usr.bin/fetch/fetch.c +++ b/usr.bin/fetch/fetch.c @@ -418,7 +418,7 @@ fetch(char *URL, const char *path) sb.st_size = -1; if (!o_stdout) { 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; } else { /* |