pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/libfetch libfetch-2.8:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a9ca39d91d5c
branches:  trunk
changeset: 541364:a9ca39d91d5c
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Apr 21 13:09:57 2008 +0000

description:
libfetch-2.8:
Fix a number of small bugs introduced in the last version.

diffstat:

 net/libfetch/Makefile     |  4 ++--
 net/libfetch/files/file.c |  5 ++---
 net/libfetch/files/ftp.c  |  3 +--
 3 files changed, 5 insertions(+), 7 deletions(-)

diffs (56 lines):

diff -r 23269d239304 -r a9ca39d91d5c net/libfetch/Makefile
--- a/net/libfetch/Makefile     Mon Apr 21 11:36:10 2008 +0000
+++ b/net/libfetch/Makefile     Mon Apr 21 13:09:57 2008 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.10 2008/04/20 15:29:26 joerg Exp $
+# $NetBSD: Makefile,v 1.11 2008/04/21 13:09:57 joerg Exp $
 #
 
-DISTNAME=      libfetch-2.7
+DISTNAME=      libfetch-2.8
 CATEGORIES=    net
 MASTER_SITES=  # empty
 DISTFILES=     # empty
diff -r 23269d239304 -r a9ca39d91d5c net/libfetch/files/file.c
--- a/net/libfetch/files/file.c Mon Apr 21 11:36:10 2008 +0000
+++ b/net/libfetch/files/file.c Mon Apr 21 13:09:57 2008 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: file.c,v 1.6 2008/04/19 14:49:23 joerg Exp $   */
+/*     $NetBSD: file.c,v 1.7 2008/04/21 13:09:57 joerg Exp $   */
 /*-
  * Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav
  * All rights reserved.
@@ -200,7 +200,6 @@
                return -1;
        }
 
-       ue = NULL;
        strncpy(fn, u->doc, sizeof(fn) - 2);
        fn[sizeof(fn) - 2] = 0;
        strcat(fn, "/");
@@ -208,7 +207,7 @@
        l = sizeof(fn) - strlen(fn) - 1;
 
        while ((de = readdir(dir)) != NULL) {
-               if (fnmatch(pattern, de->d_name, 0) != 0)
+               if (pattern && fnmatch(pattern, de->d_name, 0) != 0)
                        continue;
                strncpy(p, de->d_name, l - 1);
                p[l - 1] = 0;
diff -r 23269d239304 -r a9ca39d91d5c net/libfetch/files/ftp.c
--- a/net/libfetch/files/ftp.c  Mon Apr 21 11:36:10 2008 +0000
+++ b/net/libfetch/files/ftp.c  Mon Apr 21 13:09:57 2008 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ftp.c,v 1.18 2008/04/19 14:49:23 joerg Exp $   */
+/*     $NetBSD: ftp.c,v 1.19 2008/04/21 13:09:57 joerg Exp $   */
 /*-
  * Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav
  * Copyright (c) 2008 Joerg Sonnenberger <joerg%NetBSD.org@localhost>
@@ -1207,7 +1207,6 @@
        if (f == NULL)
                return -1;
 
-       ue = NULL;
        cur_off = 0;
        while ((len = fetchIO_read(f, buf + cur_off, sizeof(buf) - cur_off)) > 0) {
                cur_off += len;



Home | Main Index | Thread Index | Old Index