summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-10-14 05:43:41 +0000
committerjkh <jkh@FreeBSD.org>1994-10-14 05:43:41 +0000
commitd5a24500875e9be50c5bbfd35c54f42463c81576 (patch)
tree20b5613bd6353f2eccb6e01f04baec610f5c0b1c /usr.sbin/pkg_install
parent56f1e635f2208a1eca6a7db27759bdcbdee1d5e4 (diff)
downloadFreeBSD-src-d5a24500875e9be50c5bbfd35c54f42463c81576.zip
FreeBSD-src-d5a24500875e9be50c5bbfd35c54f42463c81576.tar.gz
Whoops - variable was in wrong scope. Correct.
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r--usr.sbin/pkg_install/add/perform.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/add/perform.c b/usr.sbin/pkg_install/add/perform.c
index 0d42b26..c54c6d0 100644
--- a/usr.sbin/pkg_install/add/perform.c
+++ b/usr.sbin/pkg_install/add/perform.c
@@ -1,5 +1,5 @@
#ifndef lint
-static const char *rcsid = "$Id: perform.c,v 1.9 1994/10/04 16:07:43 jkh Exp $";
+static const char *rcsid = "$Id: perform.c,v 1.10 1994/10/14 05:34:04 jkh Exp $";
#endif
/*
@@ -56,6 +56,7 @@ static int
pkg_do(char *pkg)
{
char pkg_fullname[FILENAME_MAX];
+ char home[FILENAME_MAX];
FILE *cfile;
int code = 0;
PackingList p;
@@ -77,8 +78,6 @@ pkg_do(char *pkg)
read_plist(&Plist, stdin);
}
else {
- char home[FILENAME_MAX];
-
if (!getcwd(home, FILENAME_MAX))
upchuck("getcwd");
OpenPOWER on IntegriCloud