summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/tools
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2001-06-22 00:02:45 +0000
committerbeck <beck@openbsd.org>2001-06-22 00:02:45 +0000
commitce6fc0900b2b4e5edea1b1b8e032cab822e464e9 (patch)
treeb11b933beb98ff4d5fb927f3ad0fdef1f485128d /lib/libssl/src/tools
parentBuild and install Heimdal infofile. (diff)
downloadwireguard-openbsd-ce6fc0900b2b4e5edea1b1b8e032cab822e464e9.tar.xz
wireguard-openbsd-ce6fc0900b2b4e5edea1b1b8e032cab822e464e9.zip
openssl-engine-0.9.6a merge
Diffstat (limited to 'lib/libssl/src/tools')
-rw-r--r--lib/libssl/src/tools/c_rehash.in14
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/libssl/src/tools/c_rehash.in b/lib/libssl/src/tools/c_rehash.in
index baec7c14ff4..26db8999d8c 100644
--- a/lib/libssl/src/tools/c_rehash.in
+++ b/lib/libssl/src/tools/c_rehash.in
@@ -117,7 +117,12 @@ sub link_hash_cert {
}
$hash .= ".$suffix";
print "$fname => $hash\n";
- symlink $fname, $hash;
+ $symlink_exists=eval {symlink("",""); 1};
+ if ($symlink_exists) {
+ symlink $fname, $hash;
+ } else {
+ system ("cp", $fname, $hash);
+ }
$hashlist{$hash} = $fprint;
}
@@ -142,7 +147,12 @@ sub link_hash_crl {
}
$hash .= ".r$suffix";
print "$fname => $hash\n";
- symlink $fname, $hash;
+ $symlink_exists=eval {symlink("",""); 1};
+ if ($symlink_exists) {
+ symlink $fname, $hash;
+ } else {
+ system ("cp", $fname, $hash);
+ }
$hashlist{$hash} = $fprint;
}