summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/pkg_install/lib/pen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/lib/pen.c b/usr.sbin/pkg_install/lib/pen.c
index a3cfcdf..ba2789d 100644
--- a/usr.sbin/pkg_install/lib/pen.c
+++ b/usr.sbin/pkg_install/lib/pen.c
@@ -1,5 +1,5 @@
#ifndef lint
-static const char *rcsid = "$Id: pen.c,v 1.3 1993/09/05 04:54:23 jkh Exp $";
+static const char *rcsid = "$Id: pen.c,v 1.4 1994/10/04 16:07:50 jkh Exp $";
#endif
/*
@@ -55,6 +55,8 @@ make_playpen(char *pen, size_t sz)
barf("Can't mktemp '%s'.", Pen);
if (mkdir(Pen, 0755) == FAIL)
barf("Can't mkdir '%s'.", Pen);
+ if (Verbose)
+ fprintf(stderr, "Projected package size: %d bytes, free space: %d bytes\n", sz, min_free(Pen));
if (min_free(Pen) < sz) {
rmdir(Pen);
barf("%s doesn't have enough free space. Please set your TMPDIR\nenvironment variable to a location with more space and\ntry the command again.", Pen);
OpenPOWER on IntegriCloud