Skip to content

Commit

Permalink
Prevent warning from being printed in gpg2.1
Browse files Browse the repository at this point in the history
The ignored --secret-keyring option causes a warning to be printed
to the user.

See: https://dev.gnupg.org/T2749
  • Loading branch information
o committed Jun 1, 2022
1 parent 5cc883f commit 903d7c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Horde/Crypt/Pgp/Backend/Binary.php
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ protected function _createKeyring($type = 'public')
if (empty($this->_privateKeyring)) {
$this->_privateKeyring = $this->_createTempFile('horde-pgp');
}
return '--secret-keyring ' . $this->_privateKeyring;
return ($this->_gnupg21 ? '' : '--secret-keyring ') . $this->_privateKeyring;
}
}

Expand Down

0 comments on commit 903d7c9

Please sign in to comment.