pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/fetch fetch-1.9: Fix inode check for conditional GET.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/453db3468aea
branches:  trunk
changeset: 345874:453db3468aea
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Dec 19 23:50:44 2019 +0000

description:
fetch-1.9: Fix inode check for conditional GET.

diffstat:

 net/fetch/Makefile      |  5 ++---
 net/fetch/files/fetch.c |  2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diffs (25 lines):

diff -r d919a51896d1 -r 453db3468aea net/fetch/Makefile
--- a/net/fetch/Makefile        Thu Dec 19 22:26:02 2019 +0000
+++ b/net/fetch/Makefile        Thu Dec 19 23:50:44 2019 +0000
@@ -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 -r d919a51896d1 -r 453db3468aea net/fetch/files/fetch.c
--- a/net/fetch/files/fetch.c   Thu Dec 19 22:26:02 2019 +0000
+++ b/net/fetch/files/fetch.c   Thu Dec 19 23:50:44 2019 +0000
@@ -625,7 +625,7 @@
                                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);



Home | Main Index | Thread Index | Old Index