mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 15:44:04 +01:00
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:
parent
7ea04e18b1
commit
da9e1880f5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user