From d64962e198774de4c9fd48a14388e94616c2d07e Mon Sep 17 00:00:00 2001 From: des Date: Thu, 26 Aug 2004 15:51:10 +0000 Subject: The check for r_flag was accidentally removed in the previous commit. Submitted by: SANETO Takanori MFC after: 3 days --- usr.bin/fetch/fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/fetch/fetch.c') 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 { /* -- cgit v1.1