diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2004-08-26 15:51:10 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2004-08-26 15:51:10 +0000 |
commit | 44336f2f9c7bc4240fb7ddf32059712543642b54 (patch) | |
tree | 0a020a05d5e005239ee4ca53834cfa94ccf2fd18 /usr.bin/fetch | |
parent | f2b9afaef9050587d1cd03731977de1b8d3d8076 (diff) | |
download | src-44336f2f9c7bc4240fb7ddf32059712543642b54.tar.gz src-44336f2f9c7bc4240fb7ddf32059712543642b54.zip |
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
Notes
Notes:
svn path=/head/; revision=134350
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 ef82f4ea80de..21890fda407d 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 { /* |