diff options
author | jkh <jkh@FreeBSD.org> | 1994-10-14 05:42:24 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-10-14 05:42:24 +0000 |
commit | 56f1e635f2208a1eca6a7db27759bdcbdee1d5e4 (patch) | |
tree | 977817909b8894c7e903c0f8fca30d4a5cb36625 /usr.sbin | |
parent | b1ba6ab286193ffd014f6e9f67e93554ac27dd69 (diff) | |
download | FreeBSD-src-56f1e635f2208a1eca6a7db27759bdcbdee1d5e4.zip FreeBSD-src-56f1e635f2208a1eca6a7db27759bdcbdee1d5e4.tar.gz |
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.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_install/lib/pen.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |