summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/man/manpath/manpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/man/manpath/manpath.c')
-rw-r--r--gnu/usr.bin/man/manpath/manpath.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/usr.bin/man/manpath/manpath.c b/gnu/usr.bin/man/manpath/manpath.c
index bdfbfc6..c500a55 100644
--- a/gnu/usr.bin/man/manpath/manpath.c
+++ b/gnu/usr.bin/man/manpath/manpath.c
@@ -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.
OpenPOWER on IntegriCloud