diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2001-02-16 12:12:20 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2001-02-16 12:12:20 +0000 |
| commit | ac8053467ba73bc1d587c847686996be730a3dcf (patch) | |
| tree | a5830948fbced3d63efe5d1feed44803be349551 /gnu | |
| parent | 970085df31b1f4a07c1fa0e2521a2b7cf2dfbf13 (diff) | |
Notes
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/usr.bin/man/manpath/manpath.c | 8 |
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 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. |
