aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/lib
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1996-10-14 19:41:44 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1996-10-14 19:41:44 +0000
commit82d4f7288d09bef9ed6911a05bafe70fe0dc4a15 (patch)
treecbd92e44057f5549844e91cf2d6a22dd99c63211 /usr.sbin/pkg_install/lib
parentc27ebf26ac1538a550e7c91f4d5acdbf0591718a (diff)
Notes
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 c268ce226ff7..19a93ceee2fe 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;
}