mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
Do not allow non-absolute pathnames in the manpath.
This commit is contained in:
parent
47085b17ae
commit
df4caab40f
1 changed files with 8 additions and 0 deletions
|
|
@ -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