Do not allow non-absolute pathnames in the manpath.

This commit is contained in:
Ruslan Ermilov 2001-02-13 16:55:42 +00:00
parent 47085b17ae
commit df4caab40f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=72449

View file

@ -423,6 +423,14 @@ get_manpath (perrs, path)
if (debug)
fprintf (stderr, "\npath directory %s ", p);
if (*p != '/')
{
if (debug)
fprintf (stderr, "is not an absolute pathname\n");
goto found; /* skip. */
}
/*
* The directory we're working on is in the config file.
* If we haven't added it to the list yet, do.