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
+10
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;
}