summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/lib
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-10-14 19:41:44 +0000
committerjkh <jkh@FreeBSD.org>1996-10-14 19:41:44 +0000
commit34c1fc6b4c443af12c5291d3126b51b4f1ee7fc8 (patch)
treecbd92e44057f5549844e91cf2d6a22dd99c63211 /usr.sbin/pkg_install/lib
parentae8e60c1450d4218db663293d75388fde3eee90e (diff)
downloadFreeBSD-src-34c1fc6b4c443af12c5291d3126b51b4f1ee7fc8.zip
FreeBSD-src-34c1fc6b4c443af12c5291d3126b51b4f1ee7fc8.tar.gz
Fix PR#1557 - chained package dependencies using URLs didn't work.
Diffstat (limited to 'usr.sbin/pkg_install/lib')
-rw-r--r--usr.sbin/pkg_install/lib/file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c
index c268ce2..19a93ce 100644
--- a/usr.sbin/pkg_install/lib/file.c
+++ b/usr.sbin/pkg_install/lib/file.c
@@ -1,5 +1,5 @@
#ifndef lint
-static const char *rcsid = "$Id: file.c,v 1.22 1996/06/20 18:33:51 jkh Exp $";
+static const char *rcsid = "$Id: file.c,v 1.23 1996/08/01 12:13:20 jkh Exp $";
#endif
/*
@@ -204,6 +204,7 @@ fileGetURL(char *base, char *spec)
*(cp + 1) = '\0';
strcat(cp, "All/");
strcat(cp, spec);
+ strcat(cp, ".tgz");
}
else
return NULL;
@@ -268,10 +269,10 @@ fileGetURL(char *base, char *spec)
}
else
printf("Error: Unable to construct a new playpen for FTP!\n");
+ fclose(ftp);
}
else
printf("Error: FTP Unable to get %s\n", fname);
- fclose(ftp);
return rp;
}
OpenPOWER on IntegriCloud