diff --git a/usr.sbin/sade/system.c b/usr.sbin/sade/system.c index 2ad3a48b2f02..07fc2b0adf20 100644 --- a/usr.sbin/sade/system.c +++ b/usr.sbin/sade/system.c @@ -346,9 +346,15 @@ systemHelpFile(char *file, char *buf) if (file[0] == '/') return file; snprintf(buf, FILENAME_MAX, "/stand/help/%s.hlp.gz", file); + if (file_readable(buf)) + return expand(buf); + snprintf(buf, FILENAME_MAX, "/stand/help/%s.hlp", file); if (file_readable(buf)) return expand(buf); snprintf(buf, FILENAME_MAX, "/stand/help/%s.TXT.gz", file); + if (file_readable(buf)) + return expand(buf); + snprintf(buf, FILENAME_MAX, "/stand/help/%s.TXT", file); if (file_readable(buf)) return expand(buf); snprintf(buf, FILENAME_MAX, "/usr/src/usr.sbin/sysinstall/help/%s.hlp", file); diff --git a/usr.sbin/sysinstall/system.c b/usr.sbin/sysinstall/system.c index 2ad3a48b2f02..07fc2b0adf20 100644 --- a/usr.sbin/sysinstall/system.c +++ b/usr.sbin/sysinstall/system.c @@ -346,9 +346,15 @@ systemHelpFile(char *file, char *buf) if (file[0] == '/') return file; snprintf(buf, FILENAME_MAX, "/stand/help/%s.hlp.gz", file); + if (file_readable(buf)) + return expand(buf); + snprintf(buf, FILENAME_MAX, "/stand/help/%s.hlp", file); if (file_readable(buf)) return expand(buf); snprintf(buf, FILENAME_MAX, "/stand/help/%s.TXT.gz", file); + if (file_readable(buf)) + return expand(buf); + snprintf(buf, FILENAME_MAX, "/stand/help/%s.TXT", file); if (file_readable(buf)) return expand(buf); snprintf(buf, FILENAME_MAX, "/usr/src/usr.sbin/sysinstall/help/%s.hlp", file);