aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install
diff options
context:
space:
mode:
authorSheldon Hearn <sheldonh@FreeBSD.org>2000-01-11 13:40:20 +0000
committerSheldon Hearn <sheldonh@FreeBSD.org>2000-01-11 13:40:20 +0000
commit3c47fb79228ffdb32ee27e5c00f55deb2419da55 (patch)
tree35563892a9eef145c8396d90273a4524fa27167e /usr.sbin/pkg_install
parent7642cc829e3b89e15542e202c2890b48b4093345 (diff)
downloadsrc-3c47fb79228ffdb32ee27e5c00f55deb2419da55.tar.gz
src-3c47fb79228ffdb32ee27e5c00f55deb2419da55.zip
Fix bogon in previous commit: pass a string argument to printf(3) to
satisfy the %s conversion format specifier. Reported by: Mark Huizer <freebsd@xaa.iae.nl>
Notes
Notes: svn path=/head/; revision=55821
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r--usr.sbin/pkg_install/delete/perform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/delete/perform.c b/usr.sbin/pkg_install/delete/perform.c
index 12de6b3a665a..11e96bef1420 100644
--- a/usr.sbin/pkg_install/delete/perform.c
+++ b/usr.sbin/pkg_install/delete/perform.c
@@ -169,7 +169,7 @@ pkg_do(char *pkg)
if (chdir(home) == FAIL) {
cleanup(0);
- errx(2, "unable to return to working directory %s!");
+ errx(2, "unable to return to working directory %s!", home);
}
if (!Fake) {
@@ -200,7 +200,7 @@ pkg_do(char *pkg)
if (chdir(home) == FAIL) {
cleanup(0);
- errx(2, "unable to return to working directory %s!");
+ errx(2, "unable to return to working directory %s!", home);
}
if (!Fake) {