summaryrefslogtreecommitdiff
path: root/net/fetch
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2019-12-19 23:50:44 +0000
committerjoerg <joerg@pkgsrc.org>2019-12-19 23:50:44 +0000
commitb3030da9a3264151c42838baa5ef23c6314ed9ac (patch)
tree9c5a66b37087833d924cc95b929e75df9e56cf93 /net/fetch
parent3ae4359df214eb90dcba561fc172a82e4d854881 (diff)
downloadpkgsrc-b3030da9a3264151c42838baa5ef23c6314ed9ac.tar.gz
fetch-1.9: Fix inode check for conditional GET.
Diffstat (limited to 'net/fetch')
-rw-r--r--net/fetch/Makefile5
-rw-r--r--net/fetch/files/fetch.c2
2 files changed, 3 insertions, 4 deletions
diff --git a/net/fetch/Makefile b/net/fetch/Makefile
index 325cdd5b8db..3b9ab61874e 100644
--- a/net/fetch/Makefile
+++ b/net/fetch/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.20 2019/07/16 14:47:16 jperkin Exp $
+# $NetBSD: Makefile,v 1.21 2019/12/19 23:50:44 joerg Exp $
-DISTNAME= fetch-1.8
-PKGREVISION= 4
+DISTNAME= fetch-1.9
CATEGORIES= net
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/net/fetch/files/fetch.c b/net/fetch/files/fetch.c
index cba7c88eec5..8ff9ed8d151 100644
--- a/net/fetch/files/fetch.c
+++ b/net/fetch/files/fetch.c
@@ -625,7 +625,7 @@ fetch(char *URL, const char *path)
goto failure;
}
if (nsb.st_dev != sb.st_dev ||
- nsb.st_ino != nsb.st_ino ||
+ nsb.st_ino != sb.st_ino ||
nsb.st_size != sb.st_size) {
warnx("%s: file has changed", URL);
fclose(of);