summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/lib/file.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1993-09-05 04:54:24 +0000
committerjkh <jkh@FreeBSD.org>1993-09-05 04:54:24 +0000
commite9a6985275ef309d1f9f603df83efd30018f94f8 (patch)
tree5237df764835d2c29873982e973a10aa873c31b3 /usr.sbin/pkg_install/lib/file.c
parent443968adfa831a25c1830da2ba42acd56b84322f (diff)
downloadFreeBSD-src-e9a6985275ef309d1f9f603df83efd30018f94f8.zip
FreeBSD-src-e9a6985275ef309d1f9f603df83efd30018f94f8.tar.gz
Made staging area configurable rather than assuming /tmp (-t)
Diffstat (limited to 'usr.sbin/pkg_install/lib/file.c')
-rw-r--r--usr.sbin/pkg_install/lib/file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c
index 9c86151..106a535 100644
--- a/usr.sbin/pkg_install/lib/file.c
+++ b/usr.sbin/pkg_install/lib/file.c
@@ -135,6 +135,9 @@ copy_hierarchy(char *dir, char *fname, Boolean to)
}
else
sprintf(cmd, "tar cf - %s | tar xpf - -C %s", fname, dir);
+#ifdef DEBUG
+ printf("Using '%s' to copy trees.\n", cmd);
+#endif
if (system(cmd))
barf("copy_file: Couldn't perform '%s'", cmd);
}
OpenPOWER on IntegriCloud