From 3c47fb79228ffdb32ee27e5c00f55deb2419da55 Mon Sep 17 00:00:00 2001 From: Sheldon Hearn Date: Tue, 11 Jan 2000 13:40:20 +0000 Subject: [PATCH] Fix bogon in previous commit: pass a string argument to printf(3) to satisfy the %s conversion format specifier. Reported by: Mark Huizer --- usr.sbin/pkg_install/delete/perform.c | 4 ++-- 1 file 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) {