write-man-symlinks: Write relative symlinks not absolute
authorTomas Mraz <tomas@openssl.org>
Mon, 24 May 2021 13:09:50 +0000 (15:09 +0200)
committerTomas Mraz <tomas@openssl.org>
Tue, 25 May 2021 15:14:09 +0000 (17:14 +0200)
Fixes #15424

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15437)

util/write-man-symlinks

index 97b72a3840439cf734e7895723e2cfb27c586f8a..7db7d2cbe2cbb068b9ad29dd744bc3d05cd1092e 100755 (executable)
@@ -41,7 +41,7 @@ my %podinfo = extract_pod_info($podfile);
 for my $name (@{$podinfo{names}}) {
     next if $name eq $mainf;
     if ($action eq "install") {
-        symlink "$targetdir/$manname", "$targetdir/$name.$section";
+        symlink "$manname", "$targetdir/$name.$section";
     } else {
         unlink "$targetdir/$name.$section";
     }