summaryrefslogtreecommitdiffstats
path: root/usr.bin/fetch/fetch.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2004-08-26 15:51:10 +0000
committerdes <des@FreeBSD.org>2004-08-26 15:51:10 +0000
commitd64962e198774de4c9fd48a14388e94616c2d07e (patch)
tree0a020a05d5e005239ee4ca53834cfa94ccf2fd18 /usr.bin/fetch/fetch.c
parent029d2b83e2f219122079fd7609573d5f59561cfc (diff)
downloadFreeBSD-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/fetch.c')
-rw-r--r--usr.bin/fetch/fetch.c2
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 {
/*
OpenPOWER on IntegriCloud