summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_install/add/extract.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/add/extract.c b/usr.sbin/pkg_install/add/extract.c
index 652b13d..fee490a 100644
--- a/usr.sbin/pkg_install/add/extract.c
+++ b/usr.sbin/pkg_install/add/extract.c
@@ -1,6 +1,6 @@
#ifndef lint
static const char rcsid[] =
- "$Id: extract.c,v 1.18 1997/10/24 08:32:06 max Exp $";
+ "$Id: extract.c,v 1.19 1998/01/21 00:12:56 imp Exp $";
#endif
/*
@@ -157,7 +157,11 @@ extract_plist(char *home, Package *pkg)
else {
/* rename failed, try copying with a big tar command */
if (last_chdir != Directory) {
- PUSHOUT(last_chdir);
+ if (last_chdir == NULL) {
+ PUSHOUT(Directory);
+ } else {
+ PUSHOUT(last_chdir);
+ }
last_chdir = Directory;
}
else if (p->name[0] == '/' || TOOBIG(p->name)) {
OpenPOWER on IntegriCloud