diff options
author | jkh <jkh@FreeBSD.org> | 1998-11-03 03:38:56 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1998-11-03 03:38:56 +0000 |
commit | 004c9a9a7bf78e6a547c24c49a82bf4b2e9c0625 (patch) | |
tree | 42e3838e8e94f690e49a99a508a02b97bd2091f4 /usr.sbin/sade/system.c | |
parent | 4d71d2d6e9b7465d439a32bbe623502b2310e3f0 (diff) | |
download | FreeBSD-src-004c9a9a7bf78e6a547c24c49a82bf4b2e9c0625.zip FreeBSD-src-004c9a9a7bf78e6a547c24c49a82bf4b2e9c0625.tar.gz |
Deal with both foo.hlp and FOO.TXT files.
Diffstat (limited to 'usr.sbin/sade/system.c')
-rw-r--r-- | usr.sbin/sade/system.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/sade/system.c b/usr.sbin/sade/system.c index b1a12af..a59137b 100644 --- a/usr.sbin/sade/system.c +++ b/usr.sbin/sade/system.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: system.c,v 1.83 1998/09/30 11:44:29 jkh Exp $ + * $Id: system.c,v 1.84 1998/09/30 13:36:53 jkh Exp $ * * Jordan Hubbard * @@ -223,9 +223,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.TXT.gz", file); + if (file_readable(buf)) + return expand(buf); snprintf(buf, FILENAME_MAX, "/usr/src/release/sysinstall/help/%s.hlp", file); if (file_readable(buf)) return buf; + snprintf(buf, FILENAME_MAX, "/usr/src/release/sysinstall/help/%s.TXT", file); + if (file_readable(buf)) + return buf; return NULL; } |