mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 19:52:44 +00:00
Teach sysinstall that documents on the boot floppy might not be gzipped.
Reviewed by: ru
This commit is contained in:
parent
27c7af4d02
commit
96d1ba768f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101562
@ -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