Teach sysinstall that documents on the boot floppy might not be gzipped.
Reviewed by: ru
This commit is contained in:
parent
27c7af4d02
commit
96d1ba768f
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user