mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
Do not allow non-absolute pathnames in the manpath.
This commit is contained in:
parent
47085b17ae
commit
df4caab40f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=72449
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue