summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/delete
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2000-01-11 13:40:20 +0000
committersheldonh <sheldonh@FreeBSD.org>2000-01-11 13:40:20 +0000
commitddf2890cdfae4bd1cd3a719341689d029d64b580 (patch)
tree970418f157427771869ed004312bbad438dfed1a /usr.sbin/pkg_install/delete
parent9189b4eba0543128aaa8ba8ebfd2103673501b31 (diff)
downloadFreeBSD-src-ddf2890cdfae4bd1cd3a719341689d029d64b580.zip
FreeBSD-src-ddf2890cdfae4bd1cd3a719341689d029d64b580.tar.gz
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>
Diffstat (limited to 'usr.sbin/pkg_install/delete')
-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 12de6b3..11e96be 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) {
OpenPOWER on IntegriCloud