aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sysinstall/system.c
diff options
context:
space:
mode:
authorJohn Hay <jhay@FreeBSD.org>2002-08-09 07:44:43 +0000
committerJohn Hay <jhay@FreeBSD.org>2002-08-09 07:44:43 +0000
commit96d1ba768f1ce118bdbbc924a99e77a133a3fdb8 (patch)
tree9b7c33f604708fa3573e29d766db1d20558c6f34 /usr.sbin/sysinstall/system.c
parent27c7af4d02dca19adbc0f5e961b2451ee4b20713 (diff)
downloadsrc-96d1ba768f1ce118bdbbc924a99e77a133a3fdb8.tar.gz
src-96d1ba768f1ce118bdbbc924a99e77a133a3fdb8.zip
Teach sysinstall that documents on the boot floppy might not be gzipped.
Reviewed by: ru
Notes
Notes: svn path=/head/; revision=101562
Diffstat (limited to 'usr.sbin/sysinstall/system.c')
-rw-r--r--usr.sbin/sysinstall/system.c6
1 files changed, 6 insertions, 0 deletions
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
@@ -348,9 +348,15 @@ systemHelpFile(char *file, char *buf)
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);
if (file_readable(buf))
return buf;