From 56f1e635f2208a1eca6a7db27759bdcbdee1d5e4 Mon Sep 17 00:00:00 2001 From: jkh Date: Fri, 14 Oct 1994 05:42:24 +0000 Subject: Fix bug in home directory calculation that I introduced with the free space checking code. Fix the free space checking code, while I'm at it! ;) Thanks to Garrett for spotting the home dir problem. --- usr.sbin/pkg_install/lib/pen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/pkg_install/lib/pen.c b/usr.sbin/pkg_install/lib/pen.c index ba2789d..d0bb819 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.4 1994/10/04 16:07:50 jkh Exp $"; +static const char *rcsid = "$Id: pen.c,v 1.5 1994/10/08 23:55:36 jkh Exp $"; #endif /* @@ -56,7 +56,7 @@ make_playpen(char *pen, size_t sz) 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)); + fprintf(stderr, "Projected package size: %d bytes, free 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); -- cgit v1.1