aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Schneider <wosch@FreeBSD.org>2024-06-03 16:00:42 +0000
committerWolfram Schneider <wosch@FreeBSD.org>2024-06-03 16:00:42 +0000
commit965fff98260ff53707b4ba38ff44fc5683a7189f (patch)
tree3ea8fc372e3eb066dc223a9aa3f931aa4d560ee5
parent80828c6fab0292b5c5a34a63558d837cb9308fbd (diff)
downloadsrc-965fff98260ff53707b4ba38ff44fc5683a7189f.tar.gz
src-965fff98260ff53707b4ba38ff44fc5683a7189f.zip
man(1): ignore absolute path for .so include
We want only a relative include, as ".so man1/foobar.1" MFC after: 1 week
-rwxr-xr-xusr.bin/man/man.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh
index 24a0464689cc..7461153942f5 100755
--- a/usr.bin/man/man.sh
+++ b/usr.bin/man/man.sh
@@ -324,7 +324,8 @@ man_check_for_so() {
do
line=$($cattool "$manpage" 2>/dev/null | grep -E -m1 -v '^\.\\"[ ]*|^[ ]*$')
case "$line" in
- .so*) trim "${line#.so}"
+ '.so /'*) break ;; # ignore absolute path
+ '.so '*) trim "${line#.so}"
decho "$manpage includes $tstr"
# Glob and check for the file.
if ! check_man "$1/$tstr" ""; then