diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1994-10-14 05:56:15 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1994-10-14 05:56:15 +0000 |
commit | 1593f21e5071b5bcef3cb6a7676dbecb92e96e61 (patch) | |
tree | 06019607b4966b8f6b6d5658979ecdebf09a86ba /usr.sbin/pkg_install/lib | |
parent | 69bb95d9330a2ab0bd30d3069ad855b84322ccd5 (diff) | |
download | src-test2-1593f21e5071b5bcef3cb6a7676dbecb92e96e61.tar.gz src-test2-1593f21e5071b5bcef3cb6a7676dbecb92e96e61.zip |
Notes
Diffstat (limited to 'usr.sbin/pkg_install/lib')
-rw-r--r-- | usr.sbin/pkg_install/lib/pen.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/lib/pen.c b/usr.sbin/pkg_install/lib/pen.c index d0bb819cd27e..db4238dda192 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.5 1994/10/08 23:55:36 jkh Exp $"; +static const char *rcsid = "$Id: pen.c,v 1.6 1994/10/14 05:42:24 jkh Exp $"; #endif /* @@ -55,8 +55,12 @@ 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", (int)sz, min_free(Pen)); + if (Verbose) { + if (!sz) + fprintf(stderr, "Free temp space: %d bytes\n", min_free(Pen)); + else + fprintf(stderr, "Projected package size: %d bytes, free temp space: %d bytes\n", (int)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); |