summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/delete
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2000-01-11 12:37:16 +0000
committersheldonh <sheldonh@FreeBSD.org>2000-01-11 12:37:16 +0000
commitaa0fc48ff198536186ad943ae10773b1cc9238a6 (patch)
tree63f6a9ec1a15fa9259d9a4812c340a938097a0e0 /usr.sbin/pkg_install/delete
parent295f94c3f51debee6cef5945fd557be8ceb2a5a4 (diff)
downloadFreeBSD-src-aa0fc48ff198536186ad943ae10773b1cc9238a6.zip
FreeBSD-src-aa0fc48ff198536186ad943ae10773b1cc9238a6.tar.gz
Use a more helpful fatal error message than "Toto! This doesn't look
like Kansas anymore!" when unable to return to the original working directory. PR: bin/16015
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 028ab42..12de6b3 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, "Toto! This doesn't look like Kansas anymore!");
+ errx(2, "unable to return to working directory %s!");
}
if (!Fake) {
@@ -200,7 +200,7 @@ pkg_do(char *pkg)
if (chdir(home) == FAIL) {
cleanup(0);
- errx(2, "Toto! This doesn't look like Kansas anymore!");
+ errx(2, "unable to return to working directory %s!");
}
if (!Fake) {
OpenPOWER on IntegriCloud