summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/lib
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pkg_install/lib')
-rw-r--r--usr.sbin/pkg_install/lib/file.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c
index 8bf27b6..ef52dca 100644
--- a/usr.sbin/pkg_install/lib/file.c
+++ b/usr.sbin/pkg_install/lib/file.c
@@ -1,6 +1,6 @@
#ifndef lint
static const char rcsid[] =
- "$Id: file.c,v 1.28 1997/07/01 06:13:50 jkh Exp $";
+ "$Id: file.c,v 1.29 1997/10/08 07:47:54 charnier Exp $";
#endif
/*
@@ -294,15 +294,16 @@ fileFindByPath(char *base, char *fname)
if (base) {
strcpy(tmp, base);
- cp = strrchr(fname, '/');
+ cp = strrchr(tmp, '/');
if (cp) {
*cp = '\0'; /* chop name */
- cp = strrchr(fname, '/');
+ cp = strrchr(tmp, '/');
}
if (cp) {
*(cp + 1) = '\0';
strcat(cp, "All/");
strcat(cp, fname);
+ strcat(cp, ".tgz");
if (fexists(tmp))
return tmp;
}
OpenPOWER on IntegriCloud