From ac8053467ba73bc1d587c847686996be730a3dcf Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Fri, 16 Feb 2001 12:12:20 +0000 Subject: MFC: (rev 1.12) do not include non-absolute pathnames in manpath. --- gnu/usr.bin/man/manpath/manpath.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gnu/usr.bin/man') diff --git a/gnu/usr.bin/man/manpath/manpath.c b/gnu/usr.bin/man/manpath/manpath.c index bdfbfc61d79e..c500a55f2546 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. -- cgit v1.3