FAQ | This is a LIVE service | Changelog

Commit 89f039c3 authored by Tony Finch's avatar Tony Finch

regpg: dnssec_encrypt needs to return 0 for success

parent c9c75407
......@@ -523,7 +523,7 @@ sub dnssec_encrypt {
my $oldhash = peekfile "$key.private.sha256";
my $newhash = safeslurp qw(openssl dgst -sha256), "$key.private";
$newhash =~ s{^.* }{};
return if $oldhash and $oldhash eq $newhash;
return 0 if $oldhash and $oldhash eq $newhash;
# overwrite without prompting
spewto "$key.private.asc", scalar pipeslurp
@gpg_en, recipients, qw(--output -), "$key.private";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment