From a281594c29a3dc1cb0e7a121c1d146670d0952ab Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Sun, 19 Dec 1999 22:28:41 +0000 Subject: [PATCH] Whoops, I broke the doc browser (not that anyone would notice since nobody READS the docs, but anyway.. :). Fix it. --- release/sysinstall/doc.c | 8 ++++---- usr.sbin/sysinstall/doc.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/release/sysinstall/doc.c b/release/sysinstall/doc.c index 5a873d16ff19..19cd4a8b2e8d 100644 --- a/release/sysinstall/doc.c +++ b/release/sysinstall/doc.c @@ -96,17 +96,17 @@ docShowDocument(dialogMenuItem *self) "properly set in the Options editor.", browser); return DITEM_FAILURE; } - if (!strcmp(str, "Home")) + if (!strstr(str, "Home")) where = "http://www.freebsd.org"; - else if (!strcmp(str, "Other")) + else if (!strstr(str, "Other")) where = msgGetInput("http://www.freebsd.org", "Please enter the URL of the location you wish to visit."); - else if (!strcmp(str, "FAQ")) { + else if (!strstr(str, "FAQ")) { strcpy(target, "/usr/share/doc/faq/index.html"); if (!file_readable(target)) strcpy(target, "http://www.freebsd.org/FAQ"); where = target; } - else if (!strcmp(str, "Handbook")) { + else if (!strstr(str, "Handbook")) { strcpy(target, "/usr/share/doc/handbook/index.html"); if (!file_readable(target)) strcpy(target, "http://www.freebsd.org/handbook"); diff --git a/usr.sbin/sysinstall/doc.c b/usr.sbin/sysinstall/doc.c index 5a873d16ff19..19cd4a8b2e8d 100644 --- a/usr.sbin/sysinstall/doc.c +++ b/usr.sbin/sysinstall/doc.c @@ -96,17 +96,17 @@ docShowDocument(dialogMenuItem *self) "properly set in the Options editor.", browser); return DITEM_FAILURE; } - if (!strcmp(str, "Home")) + if (!strstr(str, "Home")) where = "http://www.freebsd.org"; - else if (!strcmp(str, "Other")) + else if (!strstr(str, "Other")) where = msgGetInput("http://www.freebsd.org", "Please enter the URL of the location you wish to visit."); - else if (!strcmp(str, "FAQ")) { + else if (!strstr(str, "FAQ")) { strcpy(target, "/usr/share/doc/faq/index.html"); if (!file_readable(target)) strcpy(target, "http://www.freebsd.org/FAQ"); where = target; } - else if (!strcmp(str, "Handbook")) { + else if (!strstr(str, "Handbook")) { strcpy(target, "/usr/share/doc/handbook/index.html"); if (!file_readable(target)) strcpy(target, "http://www.freebsd.org/handbook");