Added fix from Rich to accept catpages with .0 syntax for backwards

compatability (XFree86 man pages will still be .0'd for awhile).
This commit is contained in:
Jordan K. Hubbard 1993-07-18 22:40:56 +00:00
parent 7ea04e18b1
commit da9e1880f5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143

View File

@ -586,6 +586,16 @@ glob_for_file (path, section, name, cat)
gf = glob_filename (pathname);
}
if ((gf == (char **) -1 || *gf == NULL) && isdigit (*section))
{
if (cat)
sprintf (pathname, "%s/cat%s/%s.0*", path, section, name);
else
sprintf (pathname, "%s/man%s/%s.0*", path, section, name);
if (debug)
fprintf (stderr, "globbing %s\n", pathname);
gf = glob_filename (pathname);
}
return gf;
}